Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • salvomic Friend
    #131403

    hi all,
    please, help: I need:

    1. put a module below the banner position (long as this module) with custom code
    2. put another banner module (and position) below the title bar

    thanks in advance!

    salvo

    John Wesley Brett Moderator
    #262581

    Did you find an answer to this query?

    salvomic Friend
    #262582

    <em>@jbrett 69928 wrote:</em><blockquote>Did you find an answer to this query?</blockquote>
    no, I’m still searching for it

    John Wesley Brett Moderator
    #262584

    It will help to know a little PHP, but not necessary…and a keen power of observation and “cause and effect” will do just fine.

    You will have to edit the template’s main file TEMPLATES>JA TELIINE II>INDEX.PHP (make sure you back it up before you start hack it…so you can come back after the first or second wrong attempts 😉 ).

    Okay…in the code of the index.php file…you’ll notice several repeated pairings of the following with the “custom” replaced by the actual name of the module:


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

    So…basically you simply duplicate that block of code, change the name to the custom module name you want, and place it in your index.php file in the order in which you want it to appear in the template.

    Next you go to TEMPLATE MANAGER > MODULE POSITIONS and add the new name(s) of your new modules to the list.

    And finally you publish the module, with whatever content you are wanting…and cross your fingers!

    Again these are the SIMPLEST terms of doing it…and EVERY TEMPLATE has it’s little quirks and CSS modifications that have to go with adding a module. But this should give you an idea of the road ahead.

    As I mentioned above, you are likely to get it wrong the first couple of times…but it will soon come to you…as anything in Joomla always seems to.

    Have fun!
    John.

    salvomic Friend
    #262586

    many thanks, jbrett!
    I’m trying to follow your info

    salvo

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  salvomic 16 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum