Trying to code a horizontal mainmenu that wraps into multiple lines Topic is solved

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
wialco

Trying to code a horizontal mainmenu that wraps into multiple lines

Post by wialco » Mon Jan 07, 2008 11:09 pm

I am creating a custom template for a customer. I have done as much as I think I can do through the administration backend and am attempting to get a horizontal main menu to wrap into multiple lines.  If anyone has any suggestions before I start hacking the mod_mainmenu please give me a shout.  :pop

herb200mph
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Sun Jun 25, 2006 12:12 am
Location: Salisbury, North Carolina (N. of Charlotte)
Contact:

Re: Trying to code a horizontal mainmenu that wraps into multiple lines

Post by herb200mph » Fri Jan 11, 2008 1:03 pm

The painless way to do a double line menu is:

Create two identical menues in the same module position and stack them one above the other.

Do not display a module heading/title on the second row.

When row one is filled with buttons, begin adding them in row two.

You can create a unique new style for these two modules so that they appear visually as one unit.

Go to CCBFA.org and log in as "guest" with password "joomla" and look at the horizontal menu in the center content area.  The second row does not yet have link content so it is normall shut off.  Turned it one so you can look at it.  Let me know when you have seen it so I can turn it off again.

Anyway, thats a no-hack way of doing stacked menues in the same module location.
The Joomla! Academy & The Joomla! Society
http://www.joomlaacademy.net/education/
A collection of Joomla! 1.5 'torials for J!1.5 Users who need some help.

User avatar
mistaken
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jan 28, 2008 6:58 am
Location: Science City of Muñoz, Nueva Ecija
Contact:

Re: Trying to code a horizontal mainmenu that wraps into multiple lines

Post by mistaken » Mon Jan 28, 2008 7:18 am

jst hack the php file of the module.. try making tables by using nd for the module.. or better yet try making divs andalter or make module suffixes on the modules' style.css... its really not that complicated hacking the mod_**.php.... hope this helps... i'll also try to make one myself so that i may send u which codes to play with..  :'( :'( :'( :'(
Computers are incredibly fast, accurate, and stupid: humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination.
--Albert Einstein


Post Reply