[SOLVED] Menu problem after upgrade
Posted: Tue Jan 10, 2012 8:26 pm
SOLVED--turned out to be a case of case-sensitivity... using "MenuManager" instead of "menumanager" solved the problem.
To those managing the wiki--you may want to update this in the documentation. I read someone else's question here and it solved their issue so I tried it... successfully as it turns out.
=================================
After setting up a site for a client on a new host (still in testing stages), I decided to upgrade from CMSMS 1.9.4.2 to the newer 1.10.2. The site is on a WIndows 2008 server; the earlier version of CMSMS worked perfectly in this location. For the first time the upgrade with CMSMS has been rocky, but I've managed to solve all the issues except this one.
The page display stops where the lefthand menu would normally begin on only one page. Yet on any other page using this same template, all using the same template and looking very similar, there is no problem with this menu.
I found that using the tag that the all the pages would display except this one. I also found that if I used the code, the problem page WILL display, but it will not show the lefthand menu. I should add that when the page does display using the cms_module tag, there is a comment in the code view that states "Not a tag module" where the menu should appear.
There is no special code on the page, it's very much like the page Online Store-->Drive Wheels... which displays perfectly. The issue seems to revolve around the menu tags in some way.
Here's the code being used for the vertical menu:
Anyone have any ideas what might be causing this issue? If it affected all pages one could track it down, but it's just this one page. 
To those managing the wiki--you may want to update this in the documentation. I read someone else's question here and it solved their issue so I tried it... successfully as it turns out.
=================================
After setting up a site for a client on a new host (still in testing stages), I decided to upgrade from CMSMS 1.9.4.2 to the newer 1.10.2. The site is on a WIndows 2008 server; the earlier version of CMSMS worked perfectly in this location. For the first time the upgrade with CMSMS has been rocky, but I've managed to solve all the issues except this one.
The page display stops where the lefthand menu would normally begin on only one page. Yet on any other page using this same template, all using the same template and looking very similar, there is no problem with this menu.
I found that using the
Code: Select all
{menu}
Code: Select all
{cms_module module="menumanager"}
There is no special code on the page, it's very much like the page Online Store-->Drive Wheels... which displays perfectly. The issue seems to revolve around the menu tags in some way.
Here's the code being used for the vertical menu:
Code: Select all
{* CSS classes used in this template:
#active - The active/current page
li#separator - To style the ruler for the separator
span.sectionheader - To style section header *}
{if $count > 0}
<__script__ type="text/javascript" language="javascript" src="/lib/helparea.js"></__script>
<div class="menu">
<ul id="menu">
{assign var="prevdepth" value="1"}
{foreach from=$nodelist item=node}
{assign var="prevdepth" value=$prevnode->depth}
{if ($node->depth <= $prevdepth)}
{if ($prevnode->haschildren == "1")}<li></li></ul></div></li> {* bugfix if subitems were not shown in menu *}
{else}
{if $node->depth < $prevdepth}
{assign var="act_depth" value=$prevdepth-$node->depth}</li>
{while (($act_depth > 0) and ($collapseopened > 0))}
</ul></div></li>
{assign var="act_depth" value=$act_depth-1}
{assign var="collapseopened" value=$collapseopened-1}
{/while}
{else}
</li>
{/if}
{/if}
{/if}
{if $node->type == 'separator'}
<li id="separator"></li>
{else}
{if $node->current == true}<li id="active">
{else}<li>
{/if}
<a id="pic{$node->id}"
{if $node->type != 'sectionheader'}
href="{$node->url}"
{if $node->target ne ""}
target="{$node->target}"
{/if}
{/if}
{if $node->haschildren == '1'}
{assign var="collapseopened" value=$collapseopened+1} onclick="expandcontent('sub{$node->id}')"
{else}
{/if} style="cursor:pointer;cursor:hand;">
{if $node->type == 'sectionheader'}<span class="sectionheader">{/if}
{$node->menutext}
{if $node->type == 'sectionheader'}</span>{/if}
</a>
{if $node->haschildren == '1'}<div id="sub{$node->id}" class="expand"><ul>{/if}
{/if}
{assign var="prevnode" value=$node}
{/foreach}
{if ($prevnode->haschildren == "1")}<li></li></ul></div></li> {* bugfix if subitems were not shown in menu *}
{else}
{if $prevnode->depth > 1}
{assign var="act_depth" value=$prevnode->depth-1}</li>
{while (($act_depth > 0) and ($collapseopened > 0))}
</ul></div></li>
{assign var="act_depth" value=$act_depth-1}
{assign var="collapseopened" value=$collapseopened-1}
{/while}
{else}
</li>
{/if}
{/if}
</ul>
</div>
{/if}
