Basic Fields
The following field
element defines a
basic
field with the name title
:
<field mime-type="text/plain" type="basic" name="title"> <constraints> <required>true</required> </constraints> </field>
Note the following points:
-
The
name
attribute may not contain spaces and must start with a letter (not a number). -
The
mime-type
attribute specifies more precisely the type of data allowed in the field. Currently, the followingmime-type
values are supported:text/plain
(default)-
Any text. A simple text editing field is displayed in CUE.
application/xhmtl+xml
-
XHTML. A rich text editor with a formatting toolbar is displayed in CUE.
-
The optional
constraints
child element specifies that a value is required.