content:contentTypeDefinition

Gets a content type definition object by it's name. This can then be used for generating forms etc.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

contentId

false

 

Object/String

The id of the content you wish to get the content type of.

contentTypeDefinitionName

false

 

Object/String

The name of the content type you wish to get.

 

ID-result variable contains:
An org.infoglue.cms.entities.management.ContentTypeDefinitionVO-object.

Examples

The following example the content type definition with the name "Article". That object (ContentTypeDefinitionVO) contains the schema for that content type. The schema can be parsed with the other tags shown as well.

<content:contentTypeDefinition id="ctd" contentTypeDefinitionName="Article"/>
<management:contentTypeDefinitionAttributes id="contentTypeDefinitionAttributes" schemaValue="${ctd.schemaValue}"/>
<management:contentTypeDefinitionAssets id="contentTypeDefinitionAssets" schemaValue="${ctd.schemaValue}"/>



comments powered by Disqus