[solved] Vertical Sub-menus disappeared after upgrade to 1.6.5

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

[solved] Vertical Sub-menus disappeared after upgrade to 1.6.5

Post by cnymike »

I've recently upgraded a site from CMSMS 1.3.1 to 1.6.5. The upgrade went very smoothly and there has only been a glitch in my menu structure.

I had my menus set up so that each menu item on the top horizontal menu had its own vertical left sub-menu. However, after the upgrade, the vertical sub-menu no longer displays regardless of which horizontal menu item is selected.

Here is the code that I had (have) for my horizontal menu...

Code: Select all

   <!-- Start Navigation -->
   <div id="menu_horiz">
      <h2 class="accessibility">Navigation</h2>
      {menu template='simple_navigation.tpl' number_of_levels='1'}
   <hr class="accessibility" />
   </div>
   <!-- End Navigation -->
Here is the code I had (have) for my vertical sub-menu...

Code: Select all

<!-- Start Sub Navigation -->
      <div id="menu_vert">
         <h2 class="accessibility">Sub Navigation</h2>
         {if $ccuser->loggedin()}
           <ul><li>{menu template='simple_navigation.tpl' start_level='2' collapse='1'}</li></ul>
            {else}
          <!-- NB! The <ul><li> below is only added because several default templates use the same menu stylesheet, to "force" the subnavigation to act as if it's the second level in a list -->
          <ul><li>{menu template='simple_navigation.tpl' start_level='2' collapse='1' excludeprefix='private_'}{/if}</li></ul>
If I change the start_level of the menu_vert to "1" then the entire menu shows up in the left vertical menu. But when I change the start_level back to "2", then there is no sub-meny displayed at all.


This must be a really simple oversight on my part, but I can't see my error. Can anyone provide guidance?

The site is http://www.bsatroop666.org
Last edited by cnymike on Mon Oct 12, 2009 2:42 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Vertical Sub-menus disappeared after upgrade to 1.6.5

Post by RonnyK »

This was a known issue in 1.6.5 which has been fixed, see point 1 of:

http://forum.cmsmadesimple.org/index.ph ... 147.0.html

When upgrading to 1.6.6 you will have the included fix.

Ronny
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Vertical Sub-menus disappeared after upgrade to 1.6.5

Post by cnymike »

Yes indeed, the upgrade 1.6.5 > 1.6.6 fixed this glitch.
Last edited by cnymike on Mon Oct 12, 2009 2:44 pm, edited 1 time in total.
heatherfeuer

Re: [solved] Vertical Sub-menus disappeared after upgrade to 1.6.5

Post by heatherfeuer »

And the moral of the story is to check here for fixes instead of wasting an entire day pulling hair out I can't afford to lose!  ;D ::) ;D
Post Reply

Return to “CMSMS Core”