Parent page name in subnavigation
Hello,
I would like to have a subnavigation block on the left side of my page. The title of this block must be the name of the parent. Is this possible? I only saw that labels are possible.
Thanks, Jacob
I would create a template file for your template with left subnavigation and use the following code:
<aside><span class="lbl-menu">{$page.title}</span> <nav class="sub-nav"> {$var|getsubnavigation:'page':{$page.id}:2:1} </nav></aside>
You can mess around with the parameters for subnavigation. This is the syntax (from the fork cheatsheet): getsubnavigation[:type[:pageId[:startDepth[:parentDepth[:excludeIds]]]]] so in my example the subnavigation of the current page will be shown but with parent depth is 1 so only one level deep. Change that to 2 or 3 if necessary