Page 1 of 1

CSSMenu and start_element attribute

Posted: Mon Dec 12, 2005 7:40 pm
by Fulvio
Does the start_element attribute work?

Any time I specify it (for example, {cms_module module='cssmenu' start_element='1'} ) the menu disappears from the page; it only works when I put {cms_module module='cssmenu' start_element='0'} and it shows the whole menu... What's wrong??? I made any mistake(s)?

???

Fulvio

Re: CSSMenu and start_element attribute

Posted: Mon Dec 12, 2005 8:48 pm
by westis
This looks like a bug. Has been reported as a bug in the forge tracker.

Thanks.

Re: CSSMenu and start_element attribute

Posted: Tue Dec 13, 2005 6:17 am
by Hernan
Copying the equivalent code from function.bulletmenu.php solved the problem for me.

Hernán.

Re: CSSMenu and start_element attribute

Posted: Wed Dec 14, 2005 7:17 pm
by Fulvio
Now it works!
I made the following changes to the code:

line 191: $relative_show_parrent becomes $relative_show_parent
lines 240-241: $onecontent->mHierarchy becomes $onecontent->Hierarchy()
line 244: if ($show_root_siblings) becomes if (isset($params['show_root_siblings']) && $params['show_root_siblings'] == '1')

Hope this helps...

Fulvio

Re: CSSMenu and start_element attribute

Posted: Sat Dec 17, 2005 4:48 am
by Ted
Thank you very much for these changes.  They will be included in the 0.11.2 release.  The 244 change should work if it's 

Code: Select all

if ($show_root_siblings == '1')
because the variable is already sanitized at the top of the method.

Thanks again!

Re: CSSMenu and start_element attribute

Posted: Sat Dec 24, 2005 12:20 pm
by JohnJohn
wishy wrote: Thank you very much for these changes.  They will be included in the 0.11.2 release.
Just a small heads-up that this doesn't seem to have happened.

Merry Christmas and thanks to everyone for all their work on this CMS!

Re: CSSMenu and start_element attribute

Posted: Mon Dec 26, 2005 1:57 am
by Ted
Shoot. Looks like I missed a patch to backport.  Sorry about that.  It is in svn, though and will eventually be released.  :)

Re: CSSMenu and start_element attribute

Posted: Sat Jan 21, 2006 2:43 pm
by liriel
eventually? ???