[support] Different stylesheet based on path

Steve Edwards killshot91 at comcast.net
Wed Jun 25 23:04:58 UTC 2008


One way I've seen it done make a region in your template for the banner, 
and then create a block for each different banner (where the block body 
is the img tag for the banner graphic).  Then, in the "Show block on 
specific pages" fieldset, check the "Show on only the listed pages" 
radio button and list the URL for the page where you want that 
particular banner to be displayed.

Steve

Richard Burford wrote:
> 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 --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20080625/3b96964e/attachment.htm 


More information about the support mailing list