[support] Different stylesheet based on path

KOBA | Hans Rossel info at koba.be
Thu Jun 26 04:49:53 UTC 2008


You could also use the header_image module if it is just the header
that needs to be changed with the path.

Or if you stick to sections you could make subthemes where only the
css is different.

Hans
www.koba.be

2008/6/26, Steve Edwards <killshot91 at comcast.net>:
> 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/ ]
>>
>


-- 
Hans Rossel
KOBA Webdevelopment
Kerkstraat 228
9050 Gent
09-334.52.60
0472-79.32.16
www.koba.be
info at koba.be


More information about the support mailing list