Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Bob Meetin Friend
    #163452

    With earlier templates it was pretty straight-forward to an an if/else statement to the template index file for situations where I needed to add custom css, javascript or whatever for a specific page. I would first get the page ID, then create the php if/else.

    <?php
    $id = JRequest::getVar(‘id’);// article id
    $itemid = JRequest::getVar(‘Itemid’); // menu id

    if( $id == “123” ) { do whatever …}
    ?>

    With the new template structure, I’m a little confused how to manage this. The current problem in hand is seemingly very simple. For a site home page I need to customize the body background color. My way of doing this would be to add an if statement and if it matches add a <style></style>.

    Help please?

    aman204 Friend
    #389332

    How about this 🙂

    http://www.joomlart.com/forums/topic/page-class-suffix-4/

    Also, as suggested by Khanh::

    <blockquote>It will be available in version 1.2.4, are going to be released with the new template JA Methys.</blockquote>

    so you can go on to update your T3 framework 🙂

    Bob Meetin Friend
    #393279

    Thank you – this worked.

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

This topic contains 3 replies, has 2 voices, and was last updated by  Bob Meetin 13 years, 5 months ago.

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