Hello,
Last month I wanted to use the Itemid in order to load different CSS. Thanks to the help of this forum we got the solution. The code looked like this.
<?php
$Itemid=JRequest::getCmd('Itemid');
$color="default";
if ($Itemid=="1"){
$color="green";
}
if ($Itemid=="2"){
$color="green";
}
............ect.....
?>
<link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo $color; ?>.css" rel="stylesheet" type="text/css" />
My question today is if it’s possible to extract the “menu-item” value the same way it is possible to extract the “Itemid” value ?????
It would be much easier to work from this value as you wouldn’t need to update your index.php file everytime you add a sub page.
Thank you.