How to add id in to the Auto-Nav

Permalink
I'm trying to add the id to the Auto-Nav as a class. So that I can change the look and feel to every navigation. How can I set this up?
I couldn't find any help.

wasabili
 
wasabili replied on at Permalink Reply
wasabili
Found a solution. Just take the view.php from autonav and drag it to blocks/autonav.
The change in the follow rows 67-73:
if ($c->getCollectionID() == $_c->getCollectionID()) { 
            echo('<li class="nav-selected nav-path-selected il-'.$_c->getCollectionID().'"><a class="nav-selected nav-path-selected" ' . $target . ' href="' . $pageLink . '">' . $ni->getName() . '</a>');
         } elseif ( in_array($_c->getCollectionID(),$selectedPathCIDs) && ($_c->getCollectionID() != HOME_CID) ) {
            echo('<li class="nav-path-selected il-'.$_c->getCollectionID().'"><a class="nav-path-selected" href="' . $pageLink . '" ' . $target . '>' . $ni->getName() . '</a>');
         } else {
            echo('<li class="il-'.$_c->getCollectionID().'"><a href="' . $pageLink . '" ' . $target . ' >' . $ni->getName() . '</a>');
         }