Autonav help
Permalink
Hi All,
I've been a bit silly and saved over the original header_menu.php file so now my sub pages aren't droping into their own ul mark up :(
If anyone can help me out that would be great.
here's my code
I've been a bit silly and saved over the original header_menu.php file so now my sub pages aren't droping into their own ul mark up :(
If anyone can help me out that would be great.
here's my code
<?php defined('C5_EXECUTE') or die("Access Denied."); $aBlocks = $controller->generateNav(); $c = Page::getCurrentPage(); echo("<ul class=\"nav\">"); $nh = Loader::helper('navigation'); $isFirst = true; foreach($aBlocks as $ni) { $_c = $ni->getCollectionObject(); if (!$_c->getCollectionAttributeValue('exclude_nav')) { $target = $ni->getTarget(); if ($target != '') { $target = 'target="' . $target . '"'; } if ($ni->isActive($c) || strpos($c->getCollectionPath(), $_c->getCollectionPath()) === 0) {
Viewing 15 lines of 43 lines. View entire code block.