Get handle on pagetype?

Permalink 3 users found helpful
I've designed a site where I need to use the name of the pagetype in the template.

I have not been able to find anything about it in the documentation, so I was wondering if anybody could tell me how to get my hands on this information?

 
site replied on at Permalink Best Answer Reply
site
Have you tried
$c->getCollectionTypeName()
or
$c->getCollectionTypeHandle()
depending on what you need?

You can reference the Page class in /concrete/models/page.php for starters.
tommyf replied on at Permalink Reply
Thank you, just what I was looking for :-)