Autonav - Dynamically Print Or Display Parent List Item
<h2>parent1</h2> <!--Display Parent As Catagor Title-->
I am also looking for a way to display the parent list item as a title for the third and possibly fourth level. Blelow is a live example of what I am trying to integrate into C5.
I was planning in creating a custom template as suggested, but the issue is getting the parent to be dynamically inserted into the <h2> tag. Is there a way to pull that with php or jquery? I would prefer not to hardcode the parent values and have them inserted automatically.
Side note. I have seen several of your tutorials. Thanks for all of the hard work you have put into c5 documentation. Your efforts have helped me with many other challenges.
$bt_main = BlockType::getByHandle('autonav');
$bt_main->controller->orderBy = 'display_asc';
$bt_main->controller->displaySubPages = 'all';
$bt_main->controller->displaySubPageLevels = 'custom'; $bt_main->controller->displaySubPageLevelsNum = '2';
and copy /concrete/blocks/autonav/view.php file to /blocks/autonav/view.php
I would rather not hard-code it. I'm hoping there is a way I can grab that automatically.
Thanks in advance!