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:
But this has to be for pre-written styles.
What is the correct call to get the page type name?
Thanks
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
See
http://www.concrete5.org/documentation/developers/pages/page-types...
The snip of code at the bottom of the page is your starting point.
http://www.concrete5.org/documentation/developers/pages/page-types...
The snip of code at the bottom of the page is your starting point.
For thos who come across this post... look here:
http://www.concrete5.org/community/forums/customizing_c5/get-handle...