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?