Get Content type in Template

I had a task to show different template style if Cataloger module has been used and content type "catalogitem" or "catalogcategory" was specified. This solution was provided by Peciura.

{if ($content_obj->mType == 'catalogitem') or ($content_obj->mType == 'catalogcategory')}

Comments