autonav/view.php - Newbies question

Permalink 1 user found helpful
Hello all, I am just as sorry for my englis, as i am for my question, i have searched through the forum, but with no luck.

I am trying to get some tags in between the a tags of the ul li menu. But nothing happens when i attempt this:Æ

I have replaced this:
if ($c->getCollectionID() == $_c->getCollectionID()) { 
            echo('<li class="nav-selected nav-path-selected"><a class="nav-selected nav-path-selected" ' . $target . ' href="' . $pageLink . '">' . $ni->getName() . '</a>');
         } elseif ( in_array($_c->getCollectionID(),$selectedPathCIDs) ) { 
            echo('<li class="nav-path-selected"><a class="nav-path-selected" href="' . $pageLink . '" ' . $target . '>' . $ni->getName() . '</a>');
         } else {
            echo('<li><a href="' . $pageLink . '" ' . $target . ' >' . $ni->getName() . '</a>');
         }   
         $lastLevel = $thisLevel;
         $i++;


With this:

if ($c->getCollectionID() == $_c->getCollectionID()) { 
            echo('<li><div id="selected"><a ' . $target . ' href="' . $pageLink . '">' . $ni->getName() . '</a></div>');
         } elseif ( in_array($_c->getCollectionID(),$selectedPathCIDs) ) { 
            echo('<li><div id="selected"><a href="' . $pageLink . '" ' . $target . '>' . $ni->getName() . '</a></div>');
         } else {
            echo('<li><a href="' . $pageLink . '" ' . $target . ' >' . $ni->getName() . '<div id="right"></div><div id="left"></div></a>');
         }   
         $lastLevel = $thisLevel;
         $i++;




But nothing happens. it remains in the original version.

Hope you can help:) GREAT Cms btw!

View Replies:
c5studio replied on at Permalink Reply
c5studio
Is the autonav block using the "Header Menu" custom template?

Click on the block, then click on "Custom Template", if it says "Header Menu" instead of "(none selected)" then you are using the custom template.

If you are, you would need to edit autonav/templates/header_menu.php instead of autonav/view.php.

Better yet, create your own custom template, you can find more info about that here:http://www.concrete5.org/documentation/general-topics/custom-templa...
Mireck78 replied on at Permalink Reply
Mireck78
maybe the <div> need some css styling to become visible:

#selected {
   width: 30px;
   height: 30px;
   background-color: red;
}
.
fastcrash replied on at Permalink Reply
fastcrash
try clear cache in browser or dashboard/sitewide setting(or disable for a while).

where did you change aotunav block, in default page or single page?

are you sure select the right template for aouonav?