Template in a node
name | data type | constraints | description |
---|---|---|---|
nodeId | number | required int | ID of the node to which the template is assigned |
assignedNodes | array of string | List of node names to which this template is assigned | |
Properties inherited from Template |
|||
inheritedFrom | string | Name of the node this template is inherited from | |
masterNode | string | Name of the node, the master object belongs to | |
id | number | ID | |
globalId | string | Global Id of the template | |
name | string | Name of the template | |
description | string | Template description | |
creator | User | Creator | |
cdate | number | required int | Creation date |
editor | User | Last Editor | |
edate | number | required int | Last Edit date |
locked | boolean | required boolean | True if the template is locked |
markupLanguage | MarkupLanguage | Markup language | |
inherited | boolean | required boolean | True if the template is inherited |
folderId | number | Folder ID | |
masterId | number | Master ID | |
path | string | Folder path | |
templateTags | map of TemplateTag | Tags of the template | |
objectTags | map of Tag | Returns the list of object tags for this template | |
source | string | Returns the template source | |
channelSetId | number | Get the channelset id | |
channelId | number | Get the channel id | |
master | boolean | required boolean | Get whether this template is a master template |
Example
{ "nodeId" : 12345, "assignedNodes" : [ "...", "..." ], "inheritedFrom" : "...", "masterNode" : "...", "id" : 12345, "globalId" : "...", "name" : "...", "description" : "...", "creator" : { "id" : 12345, "firstName" : "...", "lastName" : "...", "description" : "...", "email" : "...", "groups" : [ { "id" : 12345, "name" : "...", "description" : "...", "children" : [ { }, { } ] }, { "id" : 12345, "name" : "...", "description" : "...", "children" : [ { }, { } ] } ], "login" : "...", "password" : "..." }, "cdate" : 12345, "editor" : { "id" : 12345, "firstName" : "...", "lastName" : "...", "description" : "...", "email" : "...", "groups" : [ { "id" : 12345, "name" : "...", "description" : "...", "children" : [ { }, { } ] }, { "id" : 12345, "name" : "...", "description" : "...", "children" : [ { }, { } ] } ], "login" : "...", "password" : "..." }, "edate" : 12345, "locked" : true, "markupLanguage" : { "id" : 12345, "name" : "...", "extension" : "...", "contentType" : "...", "feature" : "...", "excludeFromPublishing" : true }, "inherited" : true, "folderId" : 12345, "masterId" : 12345, "path" : "...", "templateTags" : { "property1" : { "mandatory" : true, "editableInPage" : true, "id" : 12345, "name" : "...", "constructId" : 12345, "construct" : { "keyword" : "...", "mayBeSubtag" : true, "mayContainSubtags" : true, "id" : 12345, "globalId" : "...", "name" : "...", "description" : "...", "icon" : "...", "creator" : { }, "cdate" : 12345, "editor" : { }, "edate" : 12345, "editdo" : 12345, "category" : "...", "categorySortorder" : 12345, "newEditor" : true, "externalEditorUrl" : "...", "parts" : [ { }, { } ], "visibleInMenu" : true, "nameI18n" : { "property1" : "...", "property2" : "..." }, "descriptionI18n" : { "property1" : "...", "property2" : "..." }, "autoEnable" : true, "liveEditorTagName" : "...", "hopeditHook" : "...", "categoryId" : 12345 }, "active" : true, "properties" : { "property1" : { "type" : "PAGETAG", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "formId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." }, "property2" : { "type" : "OVERVIEW", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "formId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." } }, "type" : "OBJECTTAG" }, "property2" : { "mandatory" : true, "editableInPage" : true, "id" : 12345, "name" : "...", "constructId" : 12345, "construct" : { "keyword" : "...", "mayBeSubtag" : true, "mayContainSubtags" : true, "id" : 12345, "globalId" : "...", "name" : "...", "description" : "...", "icon" : "...", "creator" : { }, "cdate" : 12345, "editor" : { }, "edate" : 12345, "editdo" : 12345, "category" : "...", "categorySortorder" : 12345, "newEditor" : true, "externalEditorUrl" : "...", "parts" : [ { }, { } ], "visibleInMenu" : true, "nameI18n" : { "property1" : "...", "property2" : "..." }, "descriptionI18n" : { "property1" : "...", "property2" : "..." }, "autoEnable" : true, "liveEditorTagName" : "...", "hopeditHook" : "...", "categoryId" : 12345 }, "active" : true, "properties" : { "property1" : { "type" : "PAGE", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "formId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." }, "property2" : { "type" : "ORDEREDLIST", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "formId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." } }, "type" : "CONTENTTAG" } }, "objectTags" : { "property1" : { "id" : 12345, "name" : "...", "constructId" : 12345, "construct" : { "keyword" : "...", "mayBeSubtag" : true, "mayContainSubtags" : true, "id" : 12345, "globalId" : "...", "name" : "...", "description" : "...", "icon" : "...", "creator" : { }, "cdate" : 12345, "editor" : { }, "edate" : 12345, "editdo" : 12345, "category" : "...", "categorySortorder" : 12345, "newEditor" : true, "externalEditorUrl" : "...", "parts" : [ { }, { } ], "visibleInMenu" : true, "nameI18n" : { "property1" : "...", "property2" : "..." }, "descriptionI18n" : { "property1" : "...", "property2" : "..." }, "autoEnable" : true, "liveEditorTagName" : "...", "hopeditHook" : "...", "categoryId" : 12345 }, "active" : true, "properties" : { "property1" : { "type" : "STRING", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "formId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." }, "property2" : { "type" : "OVERVIEW", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "formId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." } }, "type" : "TEMPLATETAG" }, "property2" : { "id" : 12345, "name" : "...", "constructId" : 12345, "construct" : { "keyword" : "...", "mayBeSubtag" : true, "mayContainSubtags" : true, "id" : 12345, "globalId" : "...", "name" : "...", "description" : "...", "icon" : "...", "creator" : { }, "cdate" : 12345, "editor" : { }, "edate" : 12345, "editdo" : 12345, "category" : "...", "categorySortorder" : 12345, "newEditor" : true, "externalEditorUrl" : "...", "parts" : [ { }, { } ], "visibleInMenu" : true, "nameI18n" : { "property1" : "...", "property2" : "..." }, "descriptionI18n" : { "property1" : "...", "property2" : "..." }, "autoEnable" : true, "liveEditorTagName" : "...", "hopeditHook" : "...", "categoryId" : 12345 }, "active" : true, "properties" : { "property1" : { "type" : "PAGE", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "formId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." }, "property2" : { "type" : "TEMPLATETAG", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "formId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." } }, "type" : "OBJECTTAG" } }, "source" : "...", "channelSetId" : 12345, "channelId" : 12345, "master" : true }