Editing autonav so link returns to tab

Permalink
Hi,
I have an autonav which is made up of the main nav tabs and their subnavs underneath when the main tab is active. But when it's active the link disappears from the main nav tab but I need this to stay on.

My main nav is made up of images only, the subnav is text.

I know it's something to do with this part of the code in the autonav view.php file, but I don't know how to change it:

if ($c->getCollectionID() == $_c->getCollectionID()) { 
            echo('<li id="'.$_c->getCollectionHandle().'active" class="nav-selected nav-path-selected"><a class="nav-selected nav-path-selected" href="' . $pageLink . '">' . ($thisLevel>0?$ni->getName():"") . '</a>');
         } elseif ( in_array($_c->getCollectionID(),$selectedPathCIDs) && $_c->getCollectionID() !=1) { 
            echo('<li id="'.$_c->getCollectionHandle().'active" class="nav-path-selected"><a class="nav-path-selected" href="' . $pageLink . '">' . ($thisLevel>0?$ni->getName():"") . '</a>');
         } else {
            echo('<li id="'.$_c->getCollectionHandle().'" ><a href="' . $pageLink . '">' . ($thisLevel>0?$ni->getName():"") . '</a>');
         }   
         $lastLevel = $thisLevel;
         $i++;


Any suggestions would be appreciated.

Thanks

 
kino replied on at Permalink Reply
kino
lou28 replied on at Permalink Reply
Yes just like that. Is it anyway to transform the code above so this works?