Recreating older Menu Manager Functionality (solved)

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
moorezilla
Forum Members
Forum Members
Posts: 24
Joined: Mon May 19, 2014 5:08 pm

Recreating older Menu Manager Functionality (solved)

Post by moorezilla »

In the old Menu Manager you could use:

Code: Select all

{menu start_level='2' assign='menu_there'}
{if $menu_there}
   <div id="submenu">
      <h3>Submenu</h3>
      {menu start_level='2'}
   </div>
{/if}
But this seems to have stopped working in 2.1 or maybe even 1.12... perhaps with the Smarty changes. Anyone know how to get this working again for 2.1 in either the deprecated menu manager or in navigator?
Last edited by moorezilla on Sat Dec 19, 2015 12:25 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Recreating older Menu Manager Functionality

Post by Rolf »

http://www.cmscanbesimple.org/blog/smar ... e-examples

Try to change

Code: Select all

{menu start_level='2' assign='menu_there'}
to

Code: Select all

{$menu_there ="{menu start_level='2'}" scope=global}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
moorezilla
Forum Members
Forum Members
Posts: 24
Joined: Mon May 19, 2014 5:08 pm

Re: Recreating older Menu Manager Functionality

Post by moorezilla »

Thanks, Rolf. I tried this, but it doesn't seem to work:

Code: Select all

{$menu_there ="{Navigator start_level='2'}" scope=global}
     {if $menu_there}
        <div class="headline"><h4>In This Section</h4></div>
        <div style="padding:0px 4px;font-size:.9em;">
               {Navigator collapse="1" template="minimal_menu" start_level="2"}
        </div>                              
      {/if}
Seems to put this out whether there are children or not.
moorezilla
Forum Members
Forum Members
Posts: 24
Joined: Mon May 19, 2014 5:08 pm

Re: Recreating older Menu Manager Functionality

Post by moorezilla »

Hang on... my bad. It DOES work... it just shows whether the second level pages are marked to be shown in the menu or not. Hope that makes sense. Thanks again for the help!
Post Reply

Return to “The Lounge”