FAQ: How do I control whether modules are vertically or horizontally arranged?

This is the archive off all FAQ related threads.
Locked
User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

FAQ: How do I control whether modules are vertically or horizontally arranged?

Post by mcsmom » Sun Sep 03, 2006 2:31 am

If you edit the html of your template, you will see that each position is assigned to a location using mosLoadModules.

Usually it looks something like this:

0) mosLoadModules ( "top" ); ?>

By default, modules are arranged in a vertical list. However, you can control this by changing the line. For example, to make a horizontal layout use
0) mosLoadModules ( "top", 1 ); ?>

For vertical
0) mosLoadModules ( "top", 0 ); ?>

Here are the definitions of the numbers for mosLoadModules:
1 = horizontal, 0 = normal, -1 = raw, -2 = XHTML and -3 = extra divs.
Last edited by mcsmom on Sun Oct 15, 2006 8:26 pm, edited 1 time in total.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

Locked

Return to “FAQ Archive”