Template object representing a template in GCN
name | data type | description |
---|---|---|
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 | Creation date |
editor | User | Last Editor |
edate | number | Last Edit date |
locked | boolean | True if the template is locked |
markupLanguage | MarkupLanguage | Markup language |
inherited | 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 | Get whether this template is a master template |
Example
{ "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" : "..." }, "inherited" : true, "folderId" : 12345, "masterId" : 12345, "path" : "...", "templateTags" : { "property1" : { "mandatory" : true, "editableInPage" : true, "id" : 12345, "name" : "...", "constructId" : 12345, "active" : true, "properties" : { "property1" : { "type" : "DATASOURCE", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 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, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." } }, "type" : "CONTENTTAG" }, "property2" : { "mandatory" : true, "editableInPage" : true, "id" : 12345, "name" : "...", "constructId" : 12345, "active" : true, "properties" : { "property1" : { "type" : "UNKNOWN", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." }, "property2" : { "type" : "UNORDEREDLIST", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." } }, "type" : "OBJECTTAG" } }, "objectTags" : { "property1" : { "id" : 12345, "name" : "...", "constructId" : 12345, "active" : true, "properties" : { "property1" : { "type" : "FOLDER", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." }, "property2" : { "type" : "LIST", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." } }, "type" : "OBJECTTAG" }, "property2" : { "id" : 12345, "name" : "...", "constructId" : 12345, "active" : true, "properties" : { "property1" : { "type" : "STRING", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." }, "property2" : { "type" : "DATASOURCE", "stringValue" : "...", "booleanValue" : true, "fileId" : 12345, "imageId" : 12345, "folderId" : 12345, "pageId" : 12345, "stringValues" : [ "...", "..." ], "options" : [ { }, { } ], "selectedOptions" : [ { }, { } ], "datasourceId" : 12345, "overview" : { }, "templateId" : 12345, "contentTagId" : 12345, "templateTagId" : 12345, "nodeId" : 12345, "partId" : 12345, "id" : 12345, "globalId" : "..." } }, "type" : "TEMPLATETAG" } }, "source" : "...", "channelSetId" : 12345, "channelId" : 12345, "master" : true }