I have two parts of a hard coated autonav.
It works well but the subpages dosen’t wrap in an own (nested) list (ul)
This is what I have:
<?php// work pages (1st subdirectory in the 2nd. level)$bt= BlockType::getByHandle('autonav');$bt->controller->displayPages='second_level';$bt->controller->orderBy='display_asc';$bt->controller->displaySubPages='relevant';$bt->controller->displaySubPageLevels='custom';$bt->controller->displaySubPageLevelsNum='1';$bt->render('templates/header_menu');// content pages (2nd subdirectory in the 2nd. level)$bt= BlockType::getByHandle('autonav');$bt->controller->displayPages='custom';$bt->controller->displayPagesCID="132";$bt->controller->orderBy='display_asc';$bt->controller->displaySubPages='all';
<?php// work pages (1st subdirectory in the 2nd. level)$bt= BlockType::getByHandle('autonav');$bt->controller->displayPages='second_level';$bt->controller->orderBy='display_asc';$bt->controller->displaySubPages='relevant';$bt->controller->displaySubPageLevels='custom';$bt->controller->displaySubPageLevelsNum='1';$bt->render('templates/header_menu');// content pages (2nd subdirectory in the 2nd. level)$bt= BlockType::getByHandle('autonav');$bt->controller->displayPages='custom';$bt->controller->displayPagesCID="132";$bt->controller->orderBy='display_asc';$bt->controller->displaySubPages='all';$bt->controller->displaySubPageLevels='custom';$bt->controller->displaySubPageLevelsNum='1';$bt->render('templates/header_menu');?>
As you can see no nesting is done in that file. What you should do is create your own template with the core view.php as a reference (really well commented file).
This website stores cookies on your computer. These cookies are used to improve
your website experience and provide more personalized services to you, both on this website and through
other media. To find out more about the cookies we use, see our Privacy Policy.
As you can see no nesting is done in that file. What you should do is create your own template with the core view.php as a reference (really well commented file).
You will find that file in 'root/concrete/blocks/autonav'.
Custom templates info: http://www.concrete5.org/documentation/how-tos/designers/change-how...