ComponentTemplate variable

ComponentTemplate denotes the SDL Tridion Component Template used to render Components on a Web page, resulting in Component Presentations. This variable is only available in repeating regions of Components in Dreamweaver Templates (that is, it cannot be accessed from C#), and only if the Component Template could be determined.

ComponentTemplate has the following subvariables:

ComponentTemplate.Title or ComponentTemplate.Name
the name of this Component Template as specified in Content Manager
ComponentTemplate.ID
the Content Manager URI (unique identifier) of this Component Template
Component.<MetaDataFieldName>
the value of a metadata field of the Component called <MetaDataFieldName>.
Component.MetaData.<FieldName>
the value of a metadata field of the Component Template called <FieldName> (only use this construction if your Component Template metadata contains fields called Title, Name or ID).
ComponentTemplate.Content
the string content of the item
ComponentTemplate.TemplateType
a string representation of the template type being evaluated
ComponentTemplate.OutputFormat
the text representation of the output format
ComponentTemplate.IsRepositoryPublishable
a Boolean indicating whether the template is dynamic (true) or not (false)