Page 1 of 1

MenuManager: limit by items="", but also show the children?

Posted: Wed Feb 06, 2008 5:15 am
by moltar
Is there a way to limit the meny by items="" parameter, but then also expand each one of the items and show it's children?

So if I say something like:

{menu items="one,two" number_of_levels="2"}

I expect:

* One
  * Blue
  * Green
* Two
  * Square
  * Round

But I only get the parents...

Re: MenuManager: limit by items="", but also show the children?

Posted: Mon Jul 14, 2008 8:25 pm
by irasanborn
bump

I'd also like to know this (selecting specific menu items but also showing their children). 

I tried also played around with a menu template and added an {if} condition to check on $node->alias, but with the same results as above. Any help with either approach would be appreciated.

Re: MenuManager: limit by items="", but also show the children?

Posted: Mon Jul 14, 2008 8:37 pm
by Dr.CSS
No sorry atm there is no way to do this with item= the new CMSMS ver. 1.4 beta may let you, but you can put the items under a section header or some how group them then call start_level= and show_siblings=...

Look in menu Help for parameters usage...

Re: MenuManager: limit by items="", but also show the children?

Posted: Mon Jul 14, 2008 8:54 pm
by irasanborn
OK, was afraid of that. I'll play around with some smarty in the menu manager a bit more before I give up and change my content structure. I'll post any progress if I find some.

Thanks for your quick response yet again mark  ;D

Re: MenuManager: limit by items="", but also show the children?

Posted: Sun Aug 10, 2008 3:08 am
by meanpenguin
Hi,

I think I have the same problem and submitted some code for inclusion.

http://forum.cmsmadesimple.org/index.ph ... 454.0.html

I added a parameter for "minimum levels" to show.  So I can make at least 2 levels to show.
Clicking on the second level will expand out the 3rd level just like normal...

I'll clean it up and submit it the way Calguy has specified in a sticky at the developer's forum...

Edward