how to add a class to a hardcoaded autonav list?
Permalink
is there any chance to define the class in this part of the hardheaded autonav:
the other option is to have several view templates, but this is not what I prefer…
I think on a line like this: $nav->controller->listClass = 'mainnav';
<?php $nav = BlockType::getByHandle('autonav'); $nav->controller->orderBy = 'display_asc'; $nav->controller->displayPages = 'top'; $nav->controller->displaySubPages = '1'; $nav->render('templates/nav'); ?>
the other option is to have several view templates, but this is not what I prefer…
I think on a line like this: $nav->controller->listClass = 'mainnav';
-Garen