Menumanager functionality!

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
climberusa
Forum Members
Forum Members
Posts: 126
Joined: Sun Feb 26, 2006 7:10 pm

Menumanager functionality!

Post by climberusa »

I'm trying to use the menumanager to only show the child pages/categories of the current page. I spent two hours last night searching for a solution and trying to program it myself to no avail. I had to resort to implicitly setting the pages to show but that is only a temporary fix. Ideally i would like to set it up so at a top level page it only shows the children but if you go a level lower it only shows the siblings. So, if one of you could go ahead and build this for me by tomorrow, that'd be great.

No really though if anyone has done this or has an idea of how the logic would work or if it's even possible i would love to find out. Appreciate any help I can get.

Jeff
cyberman

Re: Menumanager functionality!

Post by cyberman »

climberusa wrote: Ideally i would like to set it up so at a top level page it only shows the children but if you go a level lower it only shows the siblings.
Create a new/second cmsms template only for child pages and call menu manager there with parameter startlevel='2'.
climberusa
Forum Members
Forum Members
Posts: 126
Joined: Sun Feb 26, 2006 7:10 pm

Re: Menumanager functionality!

Post by climberusa »

I'll try that, but I did try every option laid out in the help page for menumanager and I was never able to have the menu only show children, it would always show the current page too even if I put start_level="2.1"
cyberman

Re: Menumanager functionality!

Post by cyberman »

OK - my mistake, sorry. Right parameter is start_level :)

Works for me here  :)
climberusa
Forum Members
Forum Members
Posts: 126
Joined: Sun Feb 26, 2006 7:10 pm

Re: Menumanager functionality!

Post by climberusa »

I see but is there anyway to have the list exclude the rest of the nav and only show the children, not even the current page?
heatherfeuer

Re: Menumanager functionality!

Post by heatherfeuer »

Create a separate navigation template and call that particular menu template on the special "child" page template you make.
cyberman

Re: Menumanager functionality!

Post by cyberman »

climberusa wrote: not even the current page?
??? not sure what you mean ...

This is my menu manager call in template for parents

Code: Select all

{menu template='simple_navigation.tpl' collapse='1'} 
And (the other) template attached to children uses this call

Code: Select all

{menu template='simple_navigation.tpl' collapse='1' start_level='2'}
Post Reply

Return to “CMSMS Core”