Skip to the content
Documentation

Content class definition configuration

No ratings yet

Configuring a content class to be exportable is a two steps procedure:

Step 1: Knowing if a class is exportable or not

Go to the «Setup» tab in your Administration Interface, and select «Classes» in the left menu. Here you may choose any content class you want and go to its definition.

For example, for the «folder» content class you should get the following screenshot :

Step 1 doc

Below the «Object count» line you should see the following title «Available for XML export». If the value of this attribute is «No» then you will not be able to export any content of this content class. For each attribute you can also choose whether it is exportable or not. In the above screenshot we see that the «Name» attribute is not available for XML export.

Note that if a content class is not defined as available for XML export then none of its attribute will be available for XML export.

Step 2: Making a class available for XML export

Because not all content classes or all their attributes need to be exportable, users themselves can decide which classes they want to be able to export. The only thing users have to do is to edit the content class by clicking on the «Edit» button available at the bottom of the content class definition. You should get something like this:

Step 2 doc

Click on the «Class available for XML export» check-box first and then, for each attribute you want to export, click on the «Available for XML export» check-box. Once you have defined the content class and all the attributes you want to export, just click on «OK» or «Apply» to save your changes.

List of available datatypes

Below you will find the list of Exponential datatypes that are currently available for XML rendering in eZ XML Export. By clicking on the datatype name you will be redirected to the datatype reference page. By clicking on the Exponential internal name you will be redirected to the XML schema definition of that datatype.

Datatype name Exponential internal name Handeled in eZXMLexport
Authors ezauthor yes
Checkbox ezcheckbox yes
Country ezcountry yes
Date ezdate yes
Date and time ezdatetime yes
Email ezemail yes
Enum ezenum yes
File ezfile yes
Float ezfloat yes
Identifier ezidentifier yes
Image ezimage yes
Ini setting ezinisetting no
Integer ezinteger yes
ISBN ezisbn yes
Keywords ezkeywords yes
Matrix ezmatrix yes
Media ezmedia yes
Multi-option ezmultioption no
Mutli-option2 ezmutlioption2 no
Multi-price ezmultiprice no
Object relation ezobjectrelation yes
Object relations ezobjectrelationlist yes
Option ezoption no
Package ezpackage no
Price ezprice no
Product ezproduct no
Range ezrange no
Selection ezselection no
Subtree ezsubtree no
Text Block eztext yes
Text Line ezstring yes
Time eztime yes
URL ezurl yes
User Account ezuser no
XML Block ezxmltext yes

Restrictions

Restrictions on a few datatypes like ISBN, URL or email are defined globally in the XML Schema because it is not possible to define restrictions directly in complex types. The export also adds a few meta data for each exported content object:

  •  creation date
  •  modification date
  •  language code in ISO format
  •  published version number
  •  creator identifier
<xs:attributeGroup name="objectinfo">
    <xs:attribute name="creation_date"     type="xs:dateTime" use="required"/>
    <xs:attribute name="modification_date" type="xs:dateTime" use="required"/>
    <xs:attribute name="publication_date"  type="xs:dateTime" use="required"/>
    <xs:attribute name="lang"              type="xs:string"   use="optional"/>
    <xs:attribute name="version"           type="xs:integer"  use="required"/>
    <xs:attribute name="creator_id"        type="xs:integer"  use="required"/>
</xs:attributeGroup>

In this section

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.