TemplateInPackage Data Type

Template in a package.
If the object does not have a (local) ID, this means that the object was not synchronized to the CMS.
It is also possible, that the global ID of the object is null, if it is not set in the gentics_structure.json file.
Objects without global ID in the filesystem can be imported into the CMS, but will never be "in sync", because they cannot be identified without global ID.

Properties
name data type constraints description
packageName string   Name of the package that contains the object
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

{
  "packageName" : "...",
  "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" : "...",
        "creator" : { },
        "cdate" : 12345,
        "editor" : { },
        "edate" : 12345,
        "category" : { },
        "externalEditorUrl" : "...",
        "parts" : [ { }, { } ],
        "visibleInMenu" : true,
        "nameI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "descriptionI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "autoEnable" : true,
        "liveEditorTagName" : "...",
        "openEditorOnInsert" : true,
        "editorControlStyle" : "ABOVE",
        "editorControlsInside" : true,
        "categoryId" : 12345
      },
      "active" : true,
      "properties" : {
        "property1" : {
          "type" : "UNORDEREDLIST",
          "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" : "TABLE",
          "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"
    },
    "property2" : {
      "mandatory" : true,
      "editableInPage" : true,
      "id" : 12345,
      "name" : "...",
      "constructId" : 12345,
      "construct" : {
        "keyword" : "...",
        "mayBeSubtag" : true,
        "mayContainSubtags" : true,
        "id" : 12345,
        "globalId" : "...",
        "name" : "...",
        "description" : "...",
        "creator" : { },
        "cdate" : 12345,
        "editor" : { },
        "edate" : 12345,
        "category" : { },
        "externalEditorUrl" : "...",
        "parts" : [ { }, { } ],
        "visibleInMenu" : true,
        "nameI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "descriptionI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "autoEnable" : true,
        "liveEditorTagName" : "...",
        "openEditorOnInsert" : true,
        "editorControlStyle" : "ASIDE",
        "editorControlsInside" : true,
        "categoryId" : 12345
      },
      "active" : true,
      "properties" : {
        "property1" : {
          "type" : "BREADCRUMB",
          "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" : "LIST",
          "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"
    }
  },
  "objectTags" : {
    "property1" : {
      "id" : 12345,
      "name" : "...",
      "constructId" : 12345,
      "construct" : {
        "keyword" : "...",
        "mayBeSubtag" : true,
        "mayContainSubtags" : true,
        "id" : 12345,
        "globalId" : "...",
        "name" : "...",
        "description" : "...",
        "creator" : { },
        "cdate" : 12345,
        "editor" : { },
        "edate" : 12345,
        "category" : { },
        "externalEditorUrl" : "...",
        "parts" : [ { }, { } ],
        "visibleInMenu" : true,
        "nameI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "descriptionI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "autoEnable" : true,
        "liveEditorTagName" : "...",
        "openEditorOnInsert" : true,
        "editorControlStyle" : "CLICK",
        "editorControlsInside" : true,
        "categoryId" : 12345
      },
      "active" : true,
      "properties" : {
        "property1" : {
          "type" : "LIST",
          "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" : "...",
        "creator" : { },
        "cdate" : 12345,
        "editor" : { },
        "edate" : 12345,
        "category" : { },
        "externalEditorUrl" : "...",
        "parts" : [ { }, { } ],
        "visibleInMenu" : true,
        "nameI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "descriptionI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "autoEnable" : true,
        "liveEditorTagName" : "...",
        "openEditorOnInsert" : true,
        "editorControlStyle" : "ASIDE",
        "editorControlsInside" : true,
        "categoryId" : 12345
      },
      "active" : true,
      "properties" : {
        "property1" : {
          "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" : "..."
        },
        "property2" : {
          "type" : "TABLE",
          "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"
    }
  },
  "source" : "...",
  "channelSetId" : 12345,
  "channelId" : 12345,
  "master" : true
}