Add a new module position in your Joomla! 1.0 or 1.5 template
Favoured 2409

First of all, a general tip on how to check the available module positions of your current template. Use a url like this: http://www.example.com/index.php?tp=1

After you've created a backup copy of your template folder, go to Template manager \ Site Templates, select your template and click on Edit HTML.

Add the following code where you want to place your new position: 

Joomla! 1.0  

<?php if (mosCountModules('custom')>0) { ?>
        <?php mosLoadModules('custom',-2); ?>
<?php } ?>

Joomla! 1.5

<?php if ($this->countModules('custom')) : ?>
    <div>
        <jdoc:include type="modules" name="custom" style="xhtml" />
    </div>
<?php endif; ?>

Change the name (custom) to whatever you like. Then go to Template Manager\ Module Positions and add the name of the new position (custom in the example).

Then you publish whatever module you want in your new module position Wink.


Last update: 15-11-2007 10:50

Quote this article in website Favoured Save this to del.icio.us

Users' Comments (0) RSS feed comment

No comment posted

Add your comment



mXcomment 1.0.4 © 2007-2010 - visualclinic.fr
License Creative Commons - Some rights reserved
Tuesday, 30 October 2007