Get Page Type function?
Permalink 5 users found helpful
Does anyone know how to get the pageType from within the header file?
I want to dynamically define the css class of the body tag by pagetype to give control over css in different pages.
I was looking for something like:
But it's obviously not that simple - any ideas?
I want to dynamically define the css class of the body tag by pagetype to give control over css in different pages.
I was looking for something like:
<body class="<?php echo $this->getAttribute(pageType); ?>">
But it's obviously not that simple - any ideas?
That's what I need - many thanks.
Yeah, I tried looking through the API docs for this...
Don't try acting like it's easy to find things in that unsearchable, loosely documented, poorly structured jumble.
Thanks for the answer, though, it's exactly what I needed!
Don't try acting like it's easy to find things in that unsearchable, loosely documented, poorly structured jumble.
Thanks for the answer, though, it's exactly what I needed!
I use google site:concrete5.org/api/ "what to search for" for navigating the API
I use google site:concrete5.org/api/ "what to search for" for navigating the API
Thanks for this - very helpful snippet.
The API is your friend:
http://www.concrete5.org/api/ or
http://docs.concrete5addons.com/...