view single menu item

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
herman
New Member
New Member
Posts: 4
Joined: Sun May 01, 2011 9:14 pm

view single menu item

Post 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
axxe16

Re: view single menu item

Post 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>
Post Reply

Return to “CMSMS Core”