Module Template Embedding
For use of the module in template files, there are several possibilities for invoking modules in Joomla!, or so called 'mosLoadModules parameters'. These parameters influence the HTML output Joomla! is creating for a given module position, or in other words which HTML tags for wrapping the modules output shall get applied by Joomla! before sending the content to the clients browser.
Joomla 1.0.x
For the output to be wrapped in a table use:
<?php mosLoadModules ( 'header' ); ?>
For the output to be wrapped in a DIV container:
<?php mosLoadModules ( 'header',-1 ); ?>
For the output to be plain without any additional wrapper tags:
<?php mosLoadModules ( 'header', -2 ); ?>
For the output to get included additional DIV's to allow for round corners:
<?php mosLoadModules ( 'header', -3 ); ?>
Joomla 1.5.x
Joomla 1.5.x allows to style the container into which the module output will be generated. The following example shows the Module embedding without additional wrapping by Joomla:
<jdoc:include type="modules" name="header" style="none" />
See the following for a detailed description on the Joomla 1.5 Module Chrome:
Replace the module position 'header' with the corresponding module position that has been assigned to the module through the Administrator backend (if required).