Need two menus in one position?


Author Message
Todd Pratt

Posted: 7/9/2009
Quote message 

I am in need of having two menus in the user3 position, that artiseer formats the dropdown menus so nicely for. I need a few menu items on left side of screen and some on right side?? a website that has a menu like my company wants me to emulate is www.lockheedmartin.com, If anyone can give me some good advice on how to set it up that way i would be greatful!! I was thinking to create and move some module positions but when i tried last night the menu formatting that user3 position provides didnt apply, if that is all i need the can you tell me were the setting is to change it??

artiseer is great!!
 
Laura

Posted: 7/9/2009
Quote message 

To do this, you need to do the following:

1. Duplicate the CSS code for the menu. Rename the classes and IDs for it so you are setting up a separate style for the second menu.
2. Create a new module position, or use an existing one below the user3 position.
3. In your template files, html/mod_mainmenu/default.php, you have to put in an if/else statement to apply the formatting to the second menu, and to attach the new styleset to it.

I have the php code for this. You can email me, use the contact form at http://www.dynamicscriptinstaller.com to contact me for the code. I have it working on a website, and it is functioning nicely.

This method is more stable than using menu extensions in Joomla, and it provides independent styling for each menu.

In fact, you can create a second Artisteer template, get the second menu looking like you want it in there, and copy just the menu images (rename them, and rename them in the corresponding CSS), and rename the menu CSS classes and adapt it for the new menu. Easier than fussing with major changes.

Laura