Page 1 of 1
Recreating older Menu Manager Functionality (solved)
Posted: Fri Dec 18, 2015 6:24 pm
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?
Re: Recreating older Menu Manager Functionality
Posted: Fri Dec 18, 2015 6:30 pm
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}
Re: Recreating older Menu Manager Functionality
Posted: Fri Dec 18, 2015 7:30 pm
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.
Re: Recreating older Menu Manager Functionality
Posted: Fri Dec 18, 2015 7:37 pm
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!