Page 1 of 1

Help with menus please...

Posted: Sat Mar 02, 2013 9:36 am
by Sy
I am running CMSMS version 1.9.4.2 "Faanui", since an upgrade I have lost the top line menus that were previously working but since the upgrade have disappeared.

Can anyone tell me what I'm need to do?

Before upgrade they were working.

I'm running on:
Apache 2.2
PHP 5.2.5
MySQL 5.5

Thank you.

Re: Help with menus please...

Posted: Sat Mar 02, 2013 7:01 pm
by Dr.CSS
Top line menus..?

more info = more help

Re: Help with menus please...

Posted: Sat Mar 02, 2013 7:11 pm
by Sy
When I say top line menus, I mean the drop down menus...These are used to navigate through the content pages, as set-up using the menu manager.

The menus were done as follows:

Code: Select all

{menu template='ESKA Menus'}

Re: Help with menus please...

Posted: Sat Mar 02, 2013 7:14 pm
by Dr.CSS
The name of the menu templates haven't changed in quite a while. Were you using a custom menu template or ..?

What does the {menu} call in your template look like..?

Re: Help with menus please...

Posted: Sat Mar 02, 2013 7:19 pm
by Sy
Here is my menu template:

Code: Select all

{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}
{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 class="menuactive menuparent"><a class="menuactive menuparent" 
{elseif $node->current == true}
	<li class="menuactive"><a class="menuactive" 
{elseif $node->haschildren == true}
	<li class="menuparent"><a class="menuparent" 
{elseif $node->type == 'sectionheader'}
        <li class="sectionheader"><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}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{/if}

{/foreach}

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

Re: Help with menus please...

Posted: Sat Mar 02, 2013 7:32 pm
by Sy
Ok, compared the online version with my offline development version, its the dev. version that has the problem.

In my offline version there is no Menu Manager menu opton in the Layout submenu. But there is in the online version.

I think I can see the problem and will try updating the offline version now.

The online version is 1.9.4.2, the offline version is 1.9.

Re: Help with menus please...

Posted: Sat Mar 02, 2013 7:47 pm
by Sy
Problem solved, upgraded to 1.9.4.2 and it works fine.