Page 1 of 1
Menu manager help
Posted: Sat Dec 01, 2007 9:57 pm
by marilyn
Hello,
I am new to CMS Made Simple. I have set up my first template which I brought in from Themes. This template came (in the zip folder) with a css file, tpl file, images, but no menu file. The menu it is using is not listed in the Menu Manager. Here is the code within the temple file which references the menu: {cms_module module='menumanager' collapse='1'}
Does anyone know what is happening? I want to try another menu and if I don't like it, I want to be able to come back to the original one. But I don't know where the original is located. There is no menu in the Menu Manager.
Thanks for all your help.
Re: Menu manager help
Posted: Sun Dec 02, 2007 8:12 am
by Gregor
Hello,
Welcome to CMSMS.
Did you look in the Menumenager inside the 'File' tab? By default you don't see a databasetemplate, only file template.
The way I call the menu:
Code: Select all
<!-- Start Navigation -->
<div id="menu_vert">
<h2 class="accessibility">Navigation</h2>
{menu template='cssmenu.tpl'}
<hr class="accessibility" />
</div>
<!-- End Navigation -->
Hope this gets you on the way,
Gregor
Re: Menu manager help
Posted: Sun Dec 02, 2007 11:30 pm
by marilyn
Gregor,
Yes, I did look in the File tab. There were 3 menu files. It's just, none were added to the Database Templates. I thought that until a menu was 'added' from the File tab to the Database Templates, none existed. I wonder if CMS has a default menu.
I did end up using a menu other than what came with the template. I used the same code as you posted...before I had read your posting. What's that saying, "Great minds think alike."
Thanks for you help.
Marilyn
Re: Menu manager help
Posted: Mon Dec 03, 2007 8:03 am
by kermit
marilyn wrote:
This template came (in the zip folder) with a css file, tpl file, images, but no menu file. The menu it is using is not listed in the Menu Manager. Here is the code within the temple file which references the menu: {cms_module module='menumanager' collapse='1'}
Does anyone know what is happening? I want to try another menu and if I don't like it, I want to be able to come back to the original one. But I don't know where the original is located. There is no menu in the Menu Manager.
the theme you chose uses the default menu template.
marilyn wrote:
I wonder if CMS has a default menu.
simple_navigation.tpl (one of the three default file-based templates) is used if template is not set in the {cms_module module='menumanager'} or {menu} tag.
Re: Menu manager help
Posted: Sat Jan 12, 2008 3:02 pm
by cnymike
Another fundamental question, but where exactly are the default menu templates located... ie: If I wanted to look at or modify the code for simple_navigation.tpl, how do I get to that template in admin? I've looked and looked but do not see it listed anywhere except in layout > menu manager > file templates, but the only action possible at this point is to "import template to database".
I did find this thread,
http://forum.cmsmadesimple.org/index.php/topic,12168.0.html
but I'd like some clarification on where the 3 default templates reside and how they can be -directly- accessed rather than having to import them into the database, name them something and then having to call them by a different name than the original.
Michael
Re: Menu manager help
Posted: Sat Jan 12, 2008 5:51 pm
by calguy1000
That is the suggest way of doing things, because that way your templates won't be overridden on your next upgrade.
Unfortunately menu manager has no way of changing 'default' templates (I really should do that some time) so that you could set a database template as 'default'.
But if you really want to modify the files, they'll be in modules/MenuManager/templates
Re: Menu manager help
Posted: Sat Jan 12, 2008 8:56 pm
by cnymike
I think it would be helpful it this were spelled out more clearly in the documentation wiki. Perhaps I'll add this somewhere.
Re: Menu manager help
Posted: Sat Jan 12, 2008 9:27 pm
by Dr.CSS
Most times using a default one is ok but if you need to make changes it's best to move/import it as you will always have a clean one to learn/reuse in case of a wrong change, I've one install with 45 diff. menu templates I've made, some times I go to modules/MenuManager/templates to see which one I'm going to use for a new template...