Documentation
CREATE CATEGORY
usage
<CREATE>
<CATEGORY [module="module name"] [fatherID="number"]>
<UNIQUENAME>string</UNIQUENAME>
[<ISASSIGNABLE>0/1</ISASSIGNABLE>]
<LABEL languageID="language code">string</LABEL>*
</CATEGORY>
</CREATE>
paramètres
module: the type of elements which the category will be used for (indicative).
fatherID: the ID of parent category
UNIQUENAME: the technical name of the category. Cannot be changed afterwards.
ISASSIGNABLE: whether the category can be assigned or is only a structural category (parent of other subcategories that can be assigned)
LABEL: the translations of the category's name. The languageID attribute indicates in which language. Multiple LABELs in different languages are allowed.
Create a category. Category is a service available to all type of elements. A category can be assigned to an element and all elements in a category can be retrieved.
exemples
<CREATE>
<CATEGORY module="media">
<UNIQUENAME>Rock</UNIQUENAME>
<LABEL languageID="fre">Rock</LABEL>
<LABEL languageID="eng">Rock-n'-Roll</LABEL>
</CATEGORY>
</CREATE>
Create a simple root category, dedicated to the MEDIA elements
<CREATE>
<CATEGORY module="media" fatherID="1">
<UNIQUENAME>Punk</UNIQUENAME>
<LABEL languageID="fre">Rock punk</LABEL>
<LABEL languageID="eng">Punk rock</LABEL>
</CATEGORY>
</CREATE>
Create a subcategory of the first one
<CREATE>
<CATEGORY module="contact">
<UNIQUENAME>Engineer</UNIQUENAME>
<LABEL languageID="fre">Ingénieur</LABEL>
<LABEL languageID="eng">Engineer</LABEL>
</CATEGORY>
</CREATE>
Create a category dedicated to the CONTACT elements
<CREATE>
<CATEGORY module="contact">
<UNIQUENAME>Finance</UNIQUENAME>
<ISASSIGNABLE>0</ISASSIGNABLE>
<LABEL languageID="fre">Finance</LABEL>
<LABEL languageID="eng">Finance</LABEL>
</CATEGORY>
</CREATE>
Create a category that cannot be assigned to elements. It will contain other subcategories that will be assignable.