это один вариант..
второй, если Вы сами шаблон разрабатываете: сделать в index.php шаблона проверку по item и соотв. вставлять определйнный CSS class в Body или суффикс к классу.
у шаблона Ja_Teline_III это настраивается прям в шаблоне.
Посмотрите их новый бесплатный Template Framework с новым шаблоном Ja_Purity_2, может там такое есть тоже.
Понимаю,что тема очень старая,но у меня обратная проблема,каждый раз при заходе на сайт цепляется новый CSS(их в шаблоне(
seascape-timelapse) аж 20),а хотелось бы ,что бы один и тот же.Второй вариант это похоже мой случай,можно поподробнее,а то сам никак не разберусь.
defined('_JEXEC') or die('Restricted access'); // no direct access
require_once dirname(__FILE__). DIRECTORY_SEPARATOR . 'functions.php';
$document = null;
if (isset($this))
$document = & $this;
$baseUrl = $this->baseurl;
$templateUrl = $this->baseurl . '/templates/' . $this->template;
artxComponentWrapper($document);
?>
<?php
$thetimeis = getdate(time());
$thehour = $thetimeis['hours'];
$theminute = $thetimeis['minutes'];
?>
<link href="<?php echo $this->baseurl; ?>/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/template<?php echo($thehour); ?>.css" />
<!--[if IE 6]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie6.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->