I found this page in the drupal handbook:
http://drupal.org/node/162485
But it's not working, for me... don't know what I'm doing wrong. I created a template.php file, copied and pasted in the snippet, then added the body class code to my page.tpl.php file, but it just adds blank " " marks instead of the node-type.
I cleared my theme registry, as well, and my browser cache. I know Drupal is recognizing the template.php file, because when I deleted some of the code, I got a parsing error.
Help!













Hey, can someone point me in the right direction for dynamically adding the current node-type to the body class? I just need to add icons to the node-title based on content type, and I'd rather not add node-type.tpl.php files just to add an icon.
Thanks!
Tony
Anthony Pero
http://www.myspace.com/anthonypero