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:
<?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';

 
webtodesigns replied on at Permalink Reply
webtodesigns
I don't think you can define the class there, but you seem to have a template called "nav.php" if you can post the contents of that maybe I can help you with adding the class.

-Garen