Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
This topic contains 1 reply, has 1 voice, and was last updated by fanho 16 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
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.
This topic contains 1 reply, has 1 voice, and was last updated by fanho 16 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum