Documentation Menu

1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 5 guests online

Help Site License

The Joomla! Help Site content is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution NonCommercial ShareAlike 2.5. Some parts of this website may be subject to other licenses.
Home arrow Manual arrow 2. Advanced Templating arrow Overview

Overview PDF Print E-mail
This chapter includes some more advanced features such as hiding template columns and designing templates for the Administrator.

Hiding Modules

Sometimes it is desirable to hide certain module areas if there are no modules assigned to that region. You can hide these areas by using the mosCountModules function.

<?php if (mosCountModules( 'right' )) { ?>
    <?php mosLoadModules( 'right' ); ?>
<?php } ?>

If the mosCountModules function returns a value greater than 1, the table cell will be displayed. If there are no modules defined for the "right" position for this particular page, then the cell will not be displayed. This is a good technique for increasing the horizontal screen width on certain pages.

Using Class Suffixes


Last Updated ( Wednesday, 18 May 2005 )
Next >