Monday, June 8, 2009

How to add new module positions on Joomla 1.5

Posted by Support @ Whaddya.com on Monday, June 08, 2009 0 comments

In Joomla 1.x releases, you can add a new module positions through the Template Manager, then add module position.


That's a different approach for Joomla 1.5.x. You have to  add the module position using the templateDetails.xml file. Here's an example.

<>
<>header< /position >
<>hornav< /position >
<>banner< /position >
<>left< /position >
<>right< /position >
<>top< /position >
<>king-position< /position >   see this in action below.
<>ja-login< /position >
<>user1< /position >
<>user2< /position >
< /positions >

Please note, there is no space between <> tag.

This is a sample Joomla 1.5x script code:
< ?php if ($this->countModules('king-position')) : ? >
    <><>include type="modules" name="king-position" style="xhtml" / >< /div >
< ?php endif; ? >
I hope this help, check out www.cmswebsite.com website.


0 Responses so far:

Leave a Reply