Home arrow Site Layout / CSS arrow General arrow Replacing the default module positions  
Stock Photos, Royalty Free Stock Photography, Photo Search
Main Menu
Home
Site News
Search
Contact Us
About Us
Mambo Notes
Administration
Installation
Hacks
Site Layout / CSS
Other
Website Stories
Mambo 101
Mambo Links
Author Login
Username

Password

Remember me
Password Reminder
Replacing the default module positions Print E-mail
Module positions are more or less just area markers that a template uses to tell the  Mambo framework that it wants to display any module with "X" set as its position in that area.   If no modules exist for that position (or area), it is left blank.  Likewise, modules whose position does not appear in the template, do not appear.

This creates a very flexible system that allows developers to put any module anywhere in the template.  The problem is that some of the default positions may not make sense to you or your end users.  For example, why do some templates have a USER3 position in the header of the page?  This is not some secret Mambo standard, it is just what one template developer chose to do.

So if the template positions that you have to choose from do not make sense in your situation, there is nothing wrong with completely replacing them with template positions that make sense to you.

In a recent project, I completely removed all of the default module positions (found in Site -> Template Manager -> Module Positions) by blanking them out and them replaced them with ones that would make sense to my site managers (end users).

The following is a basic layout of the Module Positions that I included for the project:

  Top 
 Left1

Left2

Left3
Main Body 
Right1

Right2

Right3
  Bottom 

Also, when these Module Positions where entered into Mambo (see Site -> Template Manager -> Module Positions), they were put in the order that we wanted them to display in the Position drop down when editing a module (1 = TOP, 2 = BOTTOM, 3 = LEFT1  .... 7 = RIGHT2, 8 = RIGHT3).

The results of making this change are as follows:

  1. I have only the module positions that I need.

  2. Only the module positions that are actually being used appear in the Position drop-down when editing a module.

  3. The modules positions that do appear in the Position drop-down are in a logical order based on the template (we chose top, bottom, left, right).

  4. My site managers can easily follow where each of the module positions are located in the template. 

Last Updated ( Tuesday, 08 February 2005 )
Bookmark Us
 
 
Popular
Latest Content
Content Copyright 2004 - 2005 KABAM, Inc. All Rights Reserved.

Mambo Copyright 2000 - 2004 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.