Home > @tridion-sites/models > Template
Abstract base class for the data of Templates.
Signature:
export declare abstract class Template extends VersionedItem
Extends: VersionedItem
Constructor | Modifiers | Description |
---|---|---|
(constructor)({ backendModel, binaryContent, parameterSchema, …versionedItemArgs }) | Constructs a new instance of the Template class |
Property | Modifiers | Type | Description |
---|---|---|---|
_backendModel | BackendTemplate | ||
binaryContent | BinaryContent | undefined | <p>Template’s binary content.</p><p>Depending on the “TemplateType”, a Template can have text content, binary content or both.</p> | |
content | string | <p>Template’s (text) content.</p><p>A string containing the text content or an empty string if the Template doesn’t have text content.</p><p>Depending on the “TemplateType”, a Template can have text content, binary content or both.</p> | |
getInternalModel | () => BackendTemplate | ||
parameterSchema | Link | undefined | <p>Parameter Schema.</p><p>A “Schema” object (purpose must be “TemplateParameters”) or undefined if no Parameter Schema is defined.</p><p>A Template can define the parameters it accepts using a Parameter Schema.</p> | |
templateType | string | undefined | <p>Template Type.</p><p>The value must be the name of one of the configured Template Types.</p> |