Page 1 of 1
Can't Find MenuManager Reference in Stock Template Code [Sol
Posted: Tue Mar 25, 2014 6:16 pm
by KitchM
I am using the latest CMSMS and the included MenuManager along with the stock NCleanBlue template. However, I can find in it no code reference to the MenuManager template of "simple_navigation.tpl (read only)".
Am I looking in the wrong place for the relationship between parts? I would appreciate a little direction. Thank you.
Re: Can't Find MenuManager Reference in Stock Template Code
Posted: Wed Mar 26, 2014 12:36 am
by JohnnyB
Usually, the templates will just use the plugin version of the tag:
{menu}
This will display all pages assigned to show in the menu using the template assigned as 'Default' in the Menu Manager.
Re: Can't Find MenuManager Reference in Stock Template Code
Posted: Wed Mar 26, 2014 3:07 am
by KitchM
Thanks much.
Was there a change in the past from something that looked like this?:
{menu template='simple_navigation.tpl' collapse='1'}
Re: Can't Find MenuManager Reference in Stock Template Code
Posted: Wed Mar 26, 2014 12:01 pm
by JohnnyB
No. not recently. I think around 2006 or so we used {menu_manager ...} maybe.
Re: Can't Find MenuManager Reference in Stock Template Code
Posted: Wed Mar 26, 2014 12:38 pm
by 10010110
In the default template of the default theme that comes with a fresh install I have {menu loadprops=0 template='cssmenu_ulshadow.tpl'}. If you go into the MenuManager page and look at the list of menu templates you will see one marked as default. That one will always just be called with {menu}, without specific template parameter. If you make another template the default and you want to use the simple navigation somewhere you do need to add the parameter.
Re: Can't Find MenuManager Reference in Stock Template Code
Posted: Wed Mar 26, 2014 2:56 pm
by KitchM
Thank you all for the quick responses and clarification. That definitely solved my problem.
Re: Can't Find MenuManager Reference in Stock Template Code
Posted: Thu Mar 27, 2014 1:43 am
by KitchM
I just thought I'd better add that the menu manager currently shows the following directions under help:
Now, you can insert it into your site with {menu template='Test Template'}. Note that the .tpl extension must be included if a file template is used.
So my summation of the whole thing is that, at this point in time, one must start with the basic format of {menu} as an insertion point for the default menu template. If one must specify other than the default, then one uses {menu template='templatename.tpl'}, where templatename.tpl is either cssmenu.tpl, minimal_menu.tpl or simple_navigation.tpl. That is, unless one creates one's own menu template to add to that list.
Special thanks to 10010110 for that detail about "default".
Re: Can't Find MenuManager Reference in Stock Template Code
Posted: Thu Mar 27, 2014 5:16 am
by JohnnyB
Right.
That is, unless one creates one's own menu template to add to that list.
FYI: In that case, if you were to create your own template called, 'Mine', then you would not use the .tpl extension.
Re: Can't Find MenuManager Reference in Stock Template Code
Posted: Thu Mar 27, 2014 3:29 pm
by KitchM
Interesting. I did not know that.
Thank you very much.