Adding a custom class (page type) to the body tag

Permalink
I would like to add a custom class to the body tag.

Problem is that my body is in the header element. I know how to add a custom class to a specific page:

<body class="<?php echo $c->getCollectionHandle(); ?>">


But this has to be for pre-written styles.

What is the correct call to get the page type name?

Thanks

dancer
View Replies: View Best Answer
dancer replied on at Permalink Best Answer Reply
dancer
ANswered my own question when I started to think about it.

For thos who come across this post... look here:

http://www.concrete5.org/community/forums/customizing_c5/get-handle...
JohntheFish replied on at Permalink Reply
JohntheFish
See
http://www.concrete5.org/documentation/developers/pages/page-types...

The snip of code at the bottom of the page is your starting point.