Problem with bulletmenu show_root_siblings

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.
Locked
Saucerlike

Problem with bulletmenu show_root_siblings

Post by Saucerlike »

I'm using version 0.10 and I've been having trouble with bulletmenu. The show_root_siblings parameter isn't working in the way that's described in the help section for the tag. Instead of showing the siblings of my starting element when I set it to 1, it shows all of the elements in the level above my starting element, and the siblings of my starting element continue to be invisible.

I'm just wondering if this is the way that it's meant to behave, and if there's anything I can do to get my menus to display with only a given starting element and its siblings. Thanks!
iozzilina

Re: Problem with bulletmenu show_root_siblings

Post by iozzilina »

{bulletmenu start_element="3" show_root_siblings ="1" number_of_levels="4"}

the above code should give you

1)(sibling)
2)sibling)
3)<-----------------------root
3.1)(child)
3.1.1)(child)

not sure why number of levels should be 4 when i count only 3, but hey, that's how it seems to work.

good luck.

-me
Saucerlike

Re: Problem with bulletmenu show_root_siblings

Post by Saucerlike »

That's what I want it to do, but it's not happening. After a bit more experimenting I've discovered that the problem only occurs when start_element is set to a number that's 3 or more levels down into the tree, so for example, if I set the start_element to 1 or 1.1 it works properly, but {bulletmenu start_element=1.1.1 show_root_siblings=1} gives me:

(1.1)
  (1.1.1)
(1.2)
(1.3)

and 1.1.2, 1.1.3 etc. don't show up on the menu.
I've managed to get around this with a lot of css hiding, but that's not exactly ideal.
Locked

Return to “CMSMS Core”