adding postion to joomla

Discussion in 'Joomla' started by journeyoftheanimals, Jun 7, 2009.

  1. #1
    Simple question...but the answer may not be so simple. I have a website www.journeyoftheanimals.com I like it for the most part. However I want to add modual positions to the template somehow. Everything is on the left side of the page and I would like to mosve some stuff to the right because the left is getting quite crowded. How simple is this task? I feel somewhat confident with changing code and know enough to backup things first. However I am just not sure what code to change to be able to add postions to the right side of the template.

    As always, thank you in advance for any help you can give.
     
    journeyoftheanimals, Jun 7, 2009 IP
  2. h40534

    h40534 Active Member

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Adding a new position on a template may be easy or hard depending on the layout of the template .i am listing crude list of steps you need to follow

    1 ) In your template , add a div after the body1 div , make it float left and give it a width so that it will fit nicely in your design
    2) Inside the div place the following code

    <?php if($this->countModules('positionname')) : ?>
    <jdoc:include type="modules" name="positionname" style="xhtml" />
    <?php endif; ?>
    PHP:
    This will add a position names 'positionname' in your template.

    Hope this helps
     
    h40534, Jun 7, 2009 IP
  3. journeyoftheanimals

    journeyoftheanimals Well-Known Member

    Messages:
    339
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #3
    OK that is what I found somewhere else but was not sure where to add it. Thank you. Will have to lookup how to make it float. But since I want it on the right wouldn't I float it right?
     
    journeyoftheanimals, Jun 7, 2009 IP
  4. journeyoftheanimals

    journeyoftheanimals Well-Known Member

    Messages:
    339
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #4
    Had to edit templatedetails.xml also to add position name. But looks like it worked, just need to tweak it a little. Thank you greatly
     
    journeyoftheanimals, Jun 7, 2009 IP
  5. h40534

    h40534 Active Member

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Adding it in templatedetails.xml only makes the position name add to the list of positions in the dropdown . you can still use the position if you just type it in , without adding to templatedetails.xml.
     
    h40534, Jun 7, 2009 IP