How do I find out the id of a template?
Thanks
[Solved]Template ids
[Solved]Template ids
Last edited by jasnick on Mon Oct 07, 2013 11:31 am, edited 1 time in total.
Re: Template ids
UDT:
Code: Select all
$contentops = cmsms()->GetContentOperations();
$content_obj = $contentops->getContentObject();
echo 'Current content object is "'.$content_obj->Name().'"<br />';
echo 'which was created on '.$content_obj->GetCreationDate().'<br
/>';
echo 'its alias is "'.$content_obj->Alias().'"<br />';
echo 'its URL is "'.$content_obj->GetURL().'"<br />';
echo 'and its Title Attribute is "'.$content_obj->TitleAttribute().'"<br />';
echo 'and its Template ID is "'.$content_obj->TemplateId().'"<br />';
Re: Template ids
Thanks rotezecke
I'm not very technical
where do I put this?
I'm not very technical

Re: Template ids
in a user defined tag (UDT). the UDT can go in content block, global content or a template.
http://docs.cmsmadesimple.org/tags/user-defined-tags
http://docs.cmsmadesimple.org/tags/user-defined-tags
Re: Template ids
Great - thanks rotezecke 
