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
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'); ?>
Would it be easier to exclude pages from the auto nav via the page properties exclude from nav option?
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
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
bump :-)
Please please can anyone help me with this?