Hi,
I have a navigation built for my website. In a panel I show some drum lessons using the following smarty code:
{menu number_of_levels="1" template="minimal_menu.tpl" start_level="3"}
This works fine. At the top I want to show the parent node of this navigation. That means level 2. but I do not want to show all items in level 2. Only that one parent.
How can I do that using smarty?
Best
Herman
view single menu item
Re: view single menu item
Hi,
You can try using CGSimpleSmarty, this module allows you to retrieve information from various other pages such as title and content for both the parent page for that child page.
In your case you could write:
You can try using CGSimpleSmarty, this module allows you to retrieve information from various other pages such as title and content for both the parent page for that child page.
In your case you could write:
Code: Select all
{$cgsimple->get_parent_alias('','parent')}
{$cgsimple->get_page_title('parent','parentTitle')}
...
<h1>{$parentTitle}</h1>