Please note that the forum isn't realy used anymore.

If you have questions, want support or just simply want to talk to us you can find us on slack.

 

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

Comment

The forum is deprecated in favor of our Slack channel, which provides real-time support for your issues.

Join us on Slack here: https://fork-cms.herokuapp.com/