Page 1 of 1

view single menu item

Posted: Sat May 28, 2011 4:39 pm
by herman
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

Re: view single menu item

Posted: Sun May 29, 2011 6:57 am
by axxe16
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:

Code: Select all

{$cgsimple->get_parent_alias('','parent')}
{$cgsimple->get_page_title('parent','parentTitle')}
...
<h1>{$parentTitle}</h1>