WheeQo.web.id

R. Bambang Widiatmoko's Blog | Sharing Knowledge to the World

Add Additional Module Position in JA Purity Template

| 23 Comments


This tutorial will show how to add additional position for module in JA Purity Template. In this case will add above the main content.
Preview:
Before:

After:

Add a Position for a Module Above Main Content

To add a new position for a module you need to edit two files, index.php and templateDetails.xml

Edit index.php

To edit index.php, go to Administrator page -> menu Extensions -> Template Manager. Choose JA_Purity -> click on Edit icon. Then click Edit HTML icon.

Go to line 172, find:

Add code above it to add a new position. You can have different kinds of module style, here are the examples:
First example:

The first style doesn’t have title in this style.

Second example:

It has a title but no styling.

Third example:

It has a title with styling.

So it become like this:






countModules('banner')) : ?>

Save it. Since you add a new position, for this example is user6, you need to edit templateDetails.xml.

Edit templateDetails.xml

To edit the file you need to browse folder on your web server. It is located in ja_purity template folder.
Go to tag

Add

user6

so it become like this:

user4
user5
user6
footer
syndicate

Add a Module to user6 Position

To see the result assign a module to user6, for example I use the Newsflash module.

Related posts:

  1. Little Modification on JA Purity Joomla! 1.5 template: JA Purity JA Purity is one of...

Related posts brought to you by Yet Another Related Posts Plugin.

  • http://obcooperativerecords.com jose

    Thanks for the article!
    I added a second top banner by putting the code: above line 158:
    <div id=”ja-mainbody” class=”clearfix”>
    looks great,
    Thank you!
    Jose

  • Eleanor

    Thank you so much for this tutorial! It was very easy to follow and exactly what I needed to know.

  • http://wheeqo.web.id R. Bambang Widiatmoko

    Nice to help you ;)

  • http://www.w3moneymaker.com nayon

    can you tell me how you have made this?

  • http://www.luxtun.com Judelux

    Hi

    Thanks for the tutorial it was very useful although now I m facing a new issue.

    I have created a banner but it’s positioned on the left how can I center it, I m not able to find place where to input the modification. Any idee

    Thanks for you help

    Julien

  • mike

    I need to add a Header position to a mod_flash module. Tried to adapt these instructions by using AND header, but it didn’t work. Anybody there to advise?

  • mike

    header

    DOES NOT WORK!

  • mike

    Tried to show code I used here, but this comments field won’t let me do it. Sorry.

    Lets just say I substituted the word “Header” in the relevant code positions. Does not work.

  • manuel

    Sorry for the off-topic but could someone please tell me why the titles of modules published in the banner area have no title?? this is driving me nuts! of course they are enabled in the module properties.

  • http://www.suffolkian.com Ben

    Thank you. This is very helpful.

    To Manual: Instead of adding a section, follow the directions in this post up to the point where you’re editing the html. Find the following line:

    and change it to

  • http://www.suffolkian.com Ben

    My post didn’t print correctly. What I mean is, instead of adding a new section, modify the definition of the banner section by adding ‘style=”xhtml” to the definition.

  • http://wheeqo.web.id R. Bambang Widiatmoko

    thanks for your advice.

  • Adam

    To get the titles to show you need to edit the template’s html file. Locate this line jdoc:include type=”modules” name=”banner” /> and add style=”xhtml” before the /?

    manuel :
    Sorry for the off-topic but could someone please tell me why the titles of modules published in the banner area have no title?? this is driving me nuts! of course they are enabled in the module properties.
    Reply

  • http://tobepublished Andy

    Good work! Helped me to resolve my issue. Thanks and keep it going…..

  • http://www.MSPComparison.com James Fletcher

    Hi There,

    I want to be able to add two modules side by side, any ideas on how to do that?

    Many Thanks!

  • http://www.i-bukmacher.pl totomix

    Great info, thanks for useful article. I’m waiting for more

  • http://www.einternetseo.com Raven

    Can you tell me how to add additional module position ja urani?
    Thank you!

  • http://nobids.net Mike

    Thank you for the tutorial. Invaluable when using JaPurity due to lack of top module positions.

  • marcap

    Thanks, it is what I needed. Is it possible to assign a width?

  • http://TheProcessOfBusiness.com Arthur

    Seems amazing! but none of the images are showing. Just tiny 404 error saying the image was removed or missing. duh.
    I have tried it in the 5 browsers I use and it is the same in all of them. I am not having any other difficulties. At least not today. I will check back. Wonderful work. & I really need it. I will look at your other writing.

  • http://wheeqo.web.id R. Bambang Widiatmoko

    @Arthur
    sorry, the image hosting suddenly delete my account doh!

  • Denver Pavoni

    Great article. Waiting for more.

  • http://www.web-hosting-service.in web hosting India

    I think that, the information is deleted. I can’t view the examples. Check it out.