Documentation
UPDATE CATEGORY
usage
<UPDATE>
<CATEGORY ID="number" [module="module name"] [fatherID="number"]>
[<ISASSIGNABLE>0/1</ISASSIGNABLE>]
[<LABEL languageID="language code">string</LABEL>*]
</CATEGORY>
</UPDATE>
paramètres
module: the type of elements which the category will be used for (indicative).
fatherID: the ID of parent category
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.
Update 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
<UPDATE>
<CATEGORY ID="8" module="media" fatherID="7">
<ISASSIGNABLE>1</ISASSIGNABLE>
<LABEL languageID="fre">Rock punk</LABEL>
<LABEL languageID="eng">Punk rock</LABEL>
</CATEGORY>
</UPDATE>
Updates a category and its translation
<UPDATE>
<CATEGORY ID="8" >
<LABEL languageID="dut">Pock Runk</LABEL>
</CATEGORY>
</UPDATE>
Update the dutch translation of a category
<UPDATE>
<CATEGORY ID="8">
<ISASSIGNABLE>0</ISASSIGNABLE>
</CATEGORY>
</UPDATE>
Disable the possibility for this category to be assigned (but won't delete the previous assignations).
<UPDATE>
<CATEGORY ID="8" module="contact"/>
</UPDATE>
Change the module of a category. It also changes the path of the category. If its path was /media/Rock/Punk/, it will become /contact/Rock/Punk/
<UPDATE>
<CATEGORY ID="8" fatherID="6"/>
</UPDATE>
Moves a category to another parent. It also changes the path of the category. If its path was /media/Rock/Punk/, it will become /media/Alternative/Punk/