Menu question

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
webguide
Forum Members
Forum Members
Posts: 15
Joined: Fri Feb 29, 2008 9:40 am

Menu question

Post by webguide »

I have successfully altered a "standard" page layout to CMSms, but now im kunda stuck with the menus...
How for example do I ad a new menu (I guess its just to at the code in menu manager) and how do I call it from the template?

The css I use for my new template got the menu-styles in it...
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm
Location: Helsinki, Finland

Re: Menu question

Post by KO »

Just add {menu}
From manumanager help you'll find plenty of setting to alter it's behaviour.
webguide
Forum Members
Forum Members
Posts: 15
Joined: Fri Feb 29, 2008 9:40 am

Re: Menu question

Post by webguide »

You mean from the template?
It is allready there, but how do I bind a menu to the {menu} and if I want several menus with different content?
webguide
Forum Members
Forum Members
Posts: 15
Joined: Fri Feb 29, 2008 9:40 am

Re: Menu question

Post by webguide »

Anyone?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Menu question

Post by Nullig »

You can use as many {menu} tags as you like in your template, at various spots (top of content, sidebar, footer, etc.). What appears in the menu depends on what parameters you add to the menu tag, like:

{menu template='cssmenu.tpl' start_level='2' start_element='1.1' show_root_siblings='1'}

{menu template='simple_navigation.tpl' start_level='2' start_element="2.1" show_root_siblings='1'}

{menu template="footermenu" items="sitemap,contact,login,registration"}

As previously stated, the help for Menu Manager has quite a bit on info - click on it and read about all of the parameters you can pass to the tag.

Nullig
webguide
Forum Members
Forum Members
Posts: 15
Joined: Fri Feb 29, 2008 9:40 am

Re: Menu question

Post by webguide »

OK, but, I have folowed the steps in the turtorial for how to work with menus. So I tried to do a menu called test-meny

First I let it be as is, but nothing happened, so I deleted all code from it and submitted. It is called from the template with: {menu template='test-meny'}
I have taken out {menu} as well, so the only call to a menu is {menu template='test-meny'}.

But it does not work, the default menu is published instead. Im kinda stuck :(
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Menu question

Post by Nullig »

It's difficult to try to help with this type of issue, as we don't have access to your template code, page hierarchy, etc. If you want to take this offline, and are willing to give me admin access to your site, PM me.

Nullig
Pierre M.

Re: Menu question

Post by Pierre M. »

Hello,
webguide wrote: {menu template='test-meny'}
I'm not sure dashes are recommended in identifiers. I'd rather 'testmeny'.

Pierre M.
Post Reply

Return to “Layout and Design (CSS & HTML)”