how to add new module position to template
Posted: Mon Oct 31, 2011 7:22 am
I have learned from Google that how to add new module position to template, as following:
Step one,open index.php file:
Another step one,
Step two, open templatedetails.xml :
For example, I want to add a new position for btslideshow module. The position will be between position "left" and "right".Then how to write code insert index.php file? I also learn that if you want to place new position after position "left", then you need to add code behind code of "left" in index.php, is that right?
Step one,open index.php file:
Code: Select all
<jdoc:include type="modules" name="yournewposition" />
Code: Select all
<?php if($this->countModules('your-position-name')) : ?>
<jdoc:include type="modules" name="your-position-name" style="none" />
<?php endif; ?>
Code: Select all
<position>your-position-name</position>