Help with autonav

Permalink
Hi there, i'm having a recent problem with my auto-nav, i'm getting a kind of link to home in every other link and getting a visual bug, i will attach picture, maybe its already solved somewhere else but, i don't really know how to look for the question, or how to make the question!

thanks in advance for any help!

1 Attachment

ricardonava
 
PineCreativeLabs replied on at Permalink Best Answer Reply
PineCreativeLabs
Are you trying to use the core block "autonav" that's included with Concrete? From the way your site looks, I would recommend a different approach: hard-code a top-level navigation. Do the following:

Replace your navigation menu with the following code:

<div id="menu">
   <?php 
   $bt = BlockType::getByHandle('autonav');
   $bt->controller->displayPages = 'top';
   $bt->controller->orderBy = 'display_asc';                    
   $bt->controller->displaySubPages = 'none'; 
   $bt->controller->displaySubPageLevels = 'custom';
   $bt->controller->displaySubPageLevelsNum = '1';                   
   $bt->render('templates/main_menu');
   ?>
</div>


This will auto-generate a proper structure for your menu. Here is a sample of how your css code should look:

#menu ul.nav { style stuff here! }
#menu ul.nav li { style }
#menu ul.nav li a { more style!}


I hope this helps?
ricardonava replied on at Permalink Reply
ricardonava
let me check it out, i am using autonav BLOCK.
ricardonava replied on at Permalink Reply
ricardonava
i entered the code and gives me same error, on opera and IE it doesn't give me that error.

think that problem came when i was moving some permission options, its the only thing iv'e modified before noticing that problem
joseajohnson replied on at Permalink Reply
joseajohnson
Have you made any recent changes to your theme or template?

Any modifications to your autonav controller/view?

Have you recently installed or updated any blocks or addons, and what blocks are present on the page?

Couldn't replicate the issue when I brought uphttp://green.solarqro.com/ in Opera. There are no duplicate links every other item, nor is the visual glitch present; the code looks as it should, and doesn't match your screenshot.

Have you tried logging out and viewing the page again, or using a different browser?
ricardonava replied on at Permalink Reply
ricardonava
yes you are right actually on opera, and IE, it doesn't show the bug.
ricardonava replied on at Permalink Reply
ricardonava
the only modifications iv'e been doing is to view permissions on SITEMAP
joseajohnson replied on at Permalink Reply
joseajohnson
Well, the site is locked down now, so there's not much more I can tell you, but, at a guess, it seems like either an issue that only appears when logged in as admin, or when firebug(?) is active.

Possibly either a CSS collision or some errant javascript.

btw, hardcoding to the theme would knock out any advantages of caching, which may not be an issue if your traffic isn't particularly high, and there aren't too many pages to contend with.
ricardonava replied on at Permalink Reply
ricardonava
i get the same error when im looged out, or without firebug, didnt notice the lockdown.
let me check that problem
ricardonava replied on at Permalink Reply
ricardonava
Thanks to the people helping out i didn't figure out how to solve it so just reinstalled theme and problem solved, hope it doesn't come back!!