Menu manager show_all not working

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
LadyHLG
Forum Members
Forum Members
Posts: 38
Joined: Wed Apr 21, 2010 1:47 pm

Menu manager show_all not working

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu manager show_all not working

Post 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"}
LadyHLG
Forum Members
Forum Members
Posts: 38
Joined: Wed Apr 21, 2010 1:47 pm

Re: Menu manager show_all not working

Post 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
LadyHLG
Forum Members
Forum Members
Posts: 38
Joined: Wed Apr 21, 2010 1:47 pm

Re: Menu manager show_all not working

Post 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
LadyHLG
Forum Members
Forum Members
Posts: 38
Joined: Wed Apr 21, 2010 1:47 pm

Re: Menu manager show_all not working

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Menu manager show_all not working

Post by calguy1000 »

Bug is fixed in SVN. it will be included with CMSMS 1.9.4
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
LadyHLG
Forum Members
Forum Members
Posts: 38
Joined: Wed Apr 21, 2010 1:47 pm

Re: Menu manager show_all not working

Post by LadyHLG »

Awesome!
Thank-You!
Post Reply

Return to “CMSMS Core”