Page 1 of 1

Menu Operation

Posted: Sat Oct 27, 2018 11:55 am
by rob8271
This menu is located in Menu Manager. It works ok as a single depth vertical menu. I am a beginner at this, but looking at the code it seems to me that it should be able to display sub menus. Is this the case?

Ideally, I am looking for a top fixed drop down menu with hover on the items with a sub menu. We are still using 1.11.7 "Genovesa.
Any help would be welcome.

the code is:

{if $count > 0}
<div id="menuwrapper">
<ul id="primary-nav">
{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 and $node->haschildren == true)}
<li><a
{elseif $node->current == true}
<li><a
{elseif $node->haschildren == true}
<li><a
{elseif $node->type == 'sectionheader'}
<li><span> {$node->menutext} </span>
{elseif $node->type == 'separator'}
<li style="list-style-type: none;"> <hr class="separator" />
{else}
<li><a
{/if}

{if $node->type != 'sectionheader' and $node->type != 'separator'}
href="{$node->url}"
{if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}
{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}
{if $node->titleattribute != ''}title="{$node->titleattribute}"{/if}
{if $node->target ne ""} target="{$node->target}"
{/if}>{$node->menutext}</a>
{/if}
{/foreach}

{repeat string="</li>" times=$node->depth-1}</li>
</ul>
</div>
{/if}

Re: Menu Operation

Posted: Sat Oct 27, 2018 3:08 pm
by DIGI3
Yes, it can display submenus. There's lots of ways to do dropdowns, but that's more of a css/js thing and not a CMSMS core issue.

Upgrading to 2.x should be your top priority, then switch to Navigator. Once you have that working, look at the sample templates, and/or utilize a framework or Google for ideas for dropdown menus. Some use just CSS, some also include Javascript.

Re: Menu Operation

Posted: Sat Oct 27, 2018 3:52 pm
by rob8271
Thanks for that. I am using the cms provided by a hosting company, so I am not directly able to upgrade. I can try to have a word with them though.

Re: Menu Operation

Posted: Wed Nov 07, 2018 6:04 pm
by paulbaker
rob8271 wrote:I am using the cms provided by a hosting company
If you are suggesting a hosting company recently auto-installed this version of CMSMS for you can you please share the name of the hosting company (PM me if you like).