[support] Different stylesheet based on path

Richard Burford rich at freestylesystems.co.uk
Wed Jun 25 22:45:26 UTC 2008


I've not built a theme for Drupal 6 yet but in Drupal 5 what you can  
do is add a body class based on what's in arg(). This can be done in  
template.php.

psynaptic
http://freestylesystems.co.uk
http://api.freestylesystems.co.uk

On 25 Jun 2008, at 23:42, Jody Cleveland wrote:

> I'm running a site with Drupal 6.2 that will have many different  
> sections to
> the site.
>
> Is there a way to define a stylesheet based on path? Sections does a  
> great
> job defining themes based on path, but that only let's you choose a
> different theme. I'd love something exactly like that, but with the  
> ability
> to just choose a different stylesheet. Many of the sections on my  
> site will
> just use a different header graphic. I'd rather not duplicate the  
> template,
> just serve it a different stylesheet.
>
> Is there a way to do this?
>
> - jody
>
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2437 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/support/attachments/20080625/d4da5f3c/attachment-0001.bin 


More information about the support mailing list