Ok, little off topic sort of...
I have setup a side menu, on a page using a simple jquery accordian style vertical menu : http://husky-computers.co.uk/test-cms/i ... page=casio
If you click on the side bar "Casio" it should open up into a 3 tier menu, but it seems to be stuck....
I can only pressume that this is due to the page "Casio" actually being a link rather than a blank "#" type URL.
Is this right? If so, is there a fix i could impose to correct this? And perhaps have the parents of that left menu bar have a # url rather than a page alias?
Could that be done?
Many thanks in advance!
Eddy
Menu question
Re: Menu question
Yes it is.I can only pressume that this is due to the page "Casio" actually being a link rather than a blank "#" type URL.
You can solve it by not making it a working link (section header) but I assume it must be a link for your other menu.
Then you could change your Menu Manager template to not create a link for the first level ($node->depth) or add some javascript to the first level links: <a .... onClick="return false;">
Re: Menu question
Hi Velden, thanks for the reply!
I wouldnt know how to strip the url from the parent using Menu managed, any pointers on where to start?!

I wouldnt know how to strip the url from the parent using Menu managed, any pointers on where to start?!

Re: Menu question
Well, try to understand the template you use now for that specific menu and use some conditional statement like
or
Didn't test and not sure if $depth should be 0 or 1
Code: Select all
{if $node->depth -ne 1}<a href=...> ...</a>{/if}
Code: Select all
<a href="..." ...{if $node->depth -ne 1} onClick="return false"{/if}>...</a>
Re: Menu question
LOL Ok, a little bit of that made sense, kind of...but id have no clue where that goes....
This is what i have as the menu template :
Where on earth is the "parent url"?! LOL Sorry, and appreciate your help!
This is what i have as the menu template :
Code: Select all
{* CSS classes used in this template:
.activeparent - The top level parent when a child is the active/current page
li.active0n h3 - n is the depth/level of the node. To style the active page for each level separately. The active page is not clickable.
.clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors. See the Tools stylesheet in the default CMSMS installation.
li.sectionheader h3 - To style section header
li.separator - To style the ruler for the separator *}
{assign var='number_of_levels' value=10000}
{if isset($menuparams.number_of_levels)}
{assign var='number_of_levels' value=$menuparams.number_of_levels}
{/if}
{if $count > 0}
<ul id="manufacturers">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or $node->current == true}
{assign var='classes' value='menuactive'}
{if $node->parent == true}
{assign var='classes' value='menuactive menuparent'}
{/if}
{if $node->children_exist == true and $node->depth < $number_of_levels}
{assign var='classes' value=$classes|cat:' parent'}
{/if}
<li class="{$classes}"><a class="{$classes}" href="{$node->url}"><span>{$node->menutext}</span></a>
{elseif $node->children_exist == true and $node->depth < $number_of_levels and $node->type != 'sectionheader' and $node->type != 'separator'}
<li class="parent"><a class="parent" href="{$node->url}"><span>{$node->menutext}</span></a>
{elseif $node->current == true}
<li class="currentpage"><h3><span>{$node->menutext}</span></h3>
{elseif $node->type == 'sectionheader'}
<li class="sectionheader"><span>{$node->menutext}</span>
{elseif $node->type == 'separator'}
<li class="separator" style="list-style-type: none;"> <hr />
{else}
<li><a href="{$node->url}"><span>{$node->menutext}</span></a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
Re: Menu question
That's what I mean with 'try to understand the template'. You should understand it to make it work for your specific case.
I think you should be able to see where and how and why those links are build. You know they start with '<a'.
I think you should be able to see where and how and why those links are build. You know they start with '<a'.