Page 1 of 1
Menu manager show_all not working
Posted: Tue Mar 01, 2011 10:36 pm
by LadyHLG
Hello,
I am attempting to list out all the child pages of whatever page is current, regardless if they are marked to show in the menu or not.
I am using the following to call the menu manger
Code: Select all
{menu show_all="1" template="side_bar_menu" childrenof=$page_alias}
However this does not seem to work for any child page marked to not show in menu, in other words, the "show_all" doesn't seem to have any effect.
Is this correct or is there some other way of doing this?
Any help would be greatly appreciated!
Thanks
LadyHLG
Re: Menu manager show_all not working
Posted: Tue Mar 01, 2011 10:39 pm
by Dr.CSS
Have you tried rearranging the parameters in the tag and maybe using dbl. quotes?...
{menu template="side_bar_menu" childrenof="$page_alias" show_all="1"}
Re: Menu manager show_all not working
Posted: Tue Mar 01, 2011 11:02 pm
by LadyHLG
Ok I have tried every combination I can think of rearranging the parameters with double quotes and single ones, I even tried hard coding the page alias. Nothing seems to be working.
Any other ideas?
LadyHLG
Re: Menu manager show_all not working
Posted: Wed Mar 02, 2011 3:42 pm
by LadyHLG
Curiouser and curiouser...
The following code does seem to work as expected:
Code: Select all
{menu template="side_bar_menu" start_page=$page_alias show_all="1"}
However, in addition to the child pages it also lists the current page, which isnt exactly what I want but I could maybe modify the template to exclude it. Not the best way to go about it, but it is a workaround.
I'm just wondering if the problems with the show_all and childrenof method is a bug or if I am getting something else wrong.
LadyHLG
Re: Menu manager show_all not working
Posted: Wed Mar 02, 2011 6:39 pm
by LadyHLG
Ok, took a quick peek at the MenuManager Code and I am pretty sure this is a bug. I can't figure out any reason to purposely have show_all not work with childrenof, so I have submitted a bug report.
Re: Menu manager show_all not working
Posted: Wed Mar 02, 2011 6:45 pm
by calguy1000
Bug is fixed in SVN. it will be included with CMSMS 1.9.4
Re: Menu manager show_all not working
Posted: Wed Mar 02, 2011 7:24 pm
by LadyHLG
Awesome!
Thank-You!