Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Templating

Mambo Manual is part of the documentation project for the Mambo open source content management system

Toggle Sidebar

Positioning and Displaying Modules


Module Positions in your Mambo Template

The Module Positions management page within Mambo allows you to enter details about the module positions you have used in your template. All the default module positions are already entered and in general it is unlikely you would need to change this.

Should you need positions that do not pre-exist in the default Mambo setup, you can simply add a new name of the module position and a description. The description is optional.

Once you have entered any additional positions you have created, click the "Save" icon in the Toolbar and the changes you have been made will be entered into Mambo. You are now able to assign modules to your newly created positions in the Module Manager.

The basic code to insert in your template (templates/name-of-your-template/index.php) to be able to assign modules to a specific position is:

<?php mosLoadModules ( 'position' ); ?>

....where the word 'position' is to be changed to whichever position defined on this page.

Positions Preview

If you wish to visualize your Template with blocks displaying the "Positions" used in the template assigned to your Home Page, then click "Site -> Preview -> Inline with Position".

Load the modules

Load the modules means to put a piece code in the templates index.php file that will be replaced with the modules when run through Mambos template engine. There are some parameters that you can use when loading these modules that load them in different ways.

In this article, all code examples are for the "left" module position. This can be replaced with any position you want. See Module Positioning in a Template for more information.

There are many ways (plain, tableless, wrapped) to load the modules in Mambo. See Module Display Options for more information.

Useful Information

Modules also provide an option to add a class suffix. This suffix is appended to the module class in the format moduletablesuffix or modulesuffix (depending on which display option you are using) for Mambo versions <=4.6. The suffix allows for unique styling through CSS. See Content Parameters in Mambo for more information.

Toggle Sidebar
Space Navigation
Adaptavist Theme Builder Powered by Atlassian Confluence
Free theme builder license