Can I have two separate menus on the one template - but of the SAME type?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

Can I have two separate menus on the one template - but of the SAME type?

Post by Darwin Web Design »

Hello

Is it possible to have two menus of the SAME TYPE in the one template? - but each one using their own style sheets?

I am using {cms_module module='menumanager' template='cssmenu-accessible.tpl'} as my menu for public pages and want to add another item (with children) to the end of that menu - which would show when authorised people are logged in.  I understand the only way to do this is to actually have two separate menus, one for public pages and another that switches on when viewing a password protected part of the site.  I am using FrontendUser and CustomContent - and understand (I think) how to set up the tags once I can sort out the two menus.  But I would really like to use the 'cssmenu-accessible.tpl' for both menus...

Just really would love the both menus to have the same 'look' that I've already created in the css menu-accessible version.  Although I would tweak the css of the second menu (password one) to show slightly differently, say a different background colour so it stands out when you log in.

Thanks   ;)
Aussie Gecko
cyberman

Re: Can I have two separate menus on the one template - but of the SAME type?

Post by cyberman »

Hmm, please look at this posting

http://forum.cmsmadesimple.org/index.ph ... l#msg28874

Have not tried yet but perhaps it will work for head area too  ::). You should only exclude the different stylesheets to a local file ...

Code: Select all

{cms_module module=CustomContent}
<!--customContent: startif group=testers-->
<link rel="stylesheet" type="text/css" href="http://www.yourserver.tld/testers.css" />
<!--customContent: else -->
<link rel="stylesheet" type="text/css" href="http://www.yourserver.tld/users.css" />
<!--customContent: endif -->
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

Re: Can I have two separate menus on the one template - but of the SAME type?

Post by Darwin Web Design »

Hello
Thanks, I had a look at this but looks a bit tricky.  I mainly need to keep it simple for my clients to maintain and don't think they would remember to number the menu items correctly and keep the structure under such control.

Perhaps I can use another one of the menu modules and style it up to look streamlined somehow...  I am guessing the second lot of menu items will appear in the main admin area along with the other pages...

I shall give it a go  :P
Post Reply

Return to “CMSMS Core”