[support] Different stylesheet based on path

Jody Cleveland cleveland at winnefox.org
Wed Jun 25 23:03:46 UTC 2008


On 6/25/08 5:45 PM, "Richard Burford" <rich at freestylesystems.co.uk> 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.

I tried adding this to template.php, but it didn't seem to do anything (body
tag still shows up as just <body>:

  print '<body id="'. arg(0) .'" ';
  print theme('onload_attribute');
  print ">";

Do I have that right?

- jody



More information about the support mailing list