|
Modules and Positions - an instructional diagram |
|
Tuesday, 08 April 2008 |
|
Joomla templates consist of your XHTML and Joomla position tags. Some template code looks like this:
<div id="content_area">
<div class="interior-title"><?php mosLoadModules ( 'titleimage', -1); ?></div>
<div class="info-box"><?php mosMainBody(); ?></div>
<div id="right"><?php mosLoadModules ( 'right'); ?></div>
</div>
In this case the positions include "titleimage," "mosMainBody" and
"right." You can either use the default Joomla positions or create your
own. If you create new position names (I like to always assign my menus
to a position called "topnav"), you have to add them to the list at
Site > Templates >Module Positions.
Now check out this diagram: Modules and Joomla Template Positions.
|
Did you know that you can include module positions inside of articles?
Joomla 1.0 has a mambot called "Load Module Position"
to use it inside of an article you have to use {mosloadposition user1}
It can be very useful when you want to include a module inside of an article for a specific page without using a menu item.
Taras