Example entry-type Resource
The following example shows a short extract from an entry-type
resource, containing just one entry definition.
<?xml version="1.0"?> <content-types version="4" xmlns="http://xmlns.escenic.com/2008/content-type" xmlns:ui="http://xmlns.escenic.com/2008/interface-hints" > <content-type name="football"> <ui:label>Football</ui:label> <ui:description>A sample entry type containing fields of all supported types</ui:description> <ui:title-field>basic</ui:title-field> <panel name="default"> <ui:label>Default</ui:label> <ui:description>The default set of fields</ui:description> <field mime-type="text/plain" type="basic" name="basic"> <ui:label>Title</ui:label> <ui:description>A sample plain text field</ui:description> </field> <field mime-type="application/xhtml+xml" type="basic" name="xhtml"> <ui:label>Body</ui:label> <ui:description>A sample xhtml field</ui:description> </field> <field type="boolean" name="boolean"> <ui:label>Milestone</ui:label> <ui:description>A sample boolean field</ui:description> </field> <field type="enumeration" name="singleChoiceEnumeration"> <ui:label>Happening</ui:label> <ui:description>A sample single choice enumeration field </ui:description> <enumeration value="first"> <ui:label>Goal</ui:label> </enumeration> <enumeration value="second"> <ui:label>Corner kick</ui:label> </enumeration> <enumeration value="third"> <ui:label>Yellow card</ui:label> </enumeration> <enumeration value="four"> <ui:label>Red card</ui:label> </enumeration> </field> </panel> <ui:tag-scheme>tag:livelabels@escenic.com,2015</ui:tag-scheme> </content-type> ... </content-types>