CSSMenu and start_element attribute

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Fulvio

CSSMenu and start_element attribute

Post 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
westis

Re: CSSMenu and start_element attribute

Post by westis »

This looks like a bug. Has been reported as a bug in the forge tracker.

Thanks.
Hernan

Re: CSSMenu and start_element attribute

Post by Hernan »

Copying the equivalent code from function.bulletmenu.php solved the problem for me.

Hernán.
Fulvio

Re: CSSMenu and start_element attribute

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: CSSMenu and start_element attribute

Post 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!
JohnJohn

Re: CSSMenu and start_element attribute

Post 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!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: CSSMenu and start_element attribute

Post by Ted »

Shoot. Looks like I missed a patch to backport.  Sorry about that.  It is in svn, though and will eventually be released.  :)
liriel

Re: CSSMenu and start_element attribute

Post by liriel »

eventually? ???
Locked

Return to “Modules/Add-Ons”