Categories


When you edit a form field of the type "Category", the "Structure" tab appears in the form editor. It is used to edit categories. Categories are used to map hierarchies. The structure of the hierarchies is defined in a simple XML document. The DTD (default for the document structure) looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT root (category)*>
<!ATTLIST root initial CDATA #REQUIRED>
<!ELEMENT category (category)*>
<!ATTLIST category name CDATA #REQUIRED>

We will illustrate the whole thing with a simple example:

<root initial="None">
<category name="Animals">
<category name="Mammals">
<category name="Whales"/>
<category name="Monkeys"/>
</category>
<category name="Reptiles"/>
<category name="Insects"/>
</category>
<category name="Plants">
<category name="Trees"/>
<category name="Flowers"/>
</category>
</root >

Once you have entered the XML source code, you can check its validity by clicking the "Validate" button. If it corresponds to the DTD specified above, the form view is updated:

admin_formfields_10_en.png