Documentation Center

ComponentTemplate variable

The ComponentTemplate variable refers to the SComponent Template used to render Components on a Web page resulting in Component Presentations. T

The ComponentTemplate variable is only available in repeating regions of Components in Dreamweaver Templates (it cannot be accessed from C#) and only if the Component Template can 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)