Filtered autonav

Permalink
Hi can anyone help, I think it should be quite obvious but I'm missing something, I have the following code to add an autonav to all my pages, I would like to make it show only pages with the is_featured tag. How would I do this.
Thanks
<?php 
   $autonav = BlockType::getByHandle('autonav');
   $autonav->controller->orderBy = 'display_asc';
   $autonav->controller->displayPages = 'top';
   $autonav->controller->displaySubPages = 'all';
   $autonav->controller->displaySubPageLevels = 'all';
   $autonav->render('templates/horizontal-nav');
   ?>

rosie607
 
madeforspace replied on at Permalink Reply
madeforspace
Would it be easier to exclude pages from the auto nav via the page properties exclude from nav option?
rosie607 replied on at Permalink Reply
rosie607
Hi, this wouldn't be suitable as then if I wanted to use the auto nav some where else like for a site map the pages wouldn't show. I only don't want them in the main site nav.
I have a main nav with drop downs for sub pages and I only want the main / most important pages to be in the main nav. But I would still want all the pages to show elsewhere in other navigation.
Thanks
rosie607 replied on at Permalink Reply
rosie607
bump :-)
rosie607 replied on at Permalink Reply
rosie607
Please please can anyone help me with this?