5.2Configuration of categories

In cmsWorks categories are organized in a tree structure. This tree is a special folder beside the folder structure containing the content documents. A category has one parent and child categories. Content documents containing a category property choose the category from a special tree selection based on the category documents from the category folder created for this purpose.

To create a category tree a document type "category" has to be created first. It must contain at least one string property "viewname". Create the special folder i.e. /categories/ and within this folder a document named "category" as the root of the category tree.

Then create a subfolder /categories/cars/ and create a document also named "category" filling the field "viewname" with "The most beautiful cars".

Configure the Additional CMS properties declaring

  • the folder of the category tree - /categories
  • document type id of the catergory document - [doctypeid]
  • the name of the document in the tree - category
  • the name of the viewname field - viewname

Open a content document containing a category input field and open the category selection. It contains a first entry called "The most beautiful cars".

With more subfolders and their document of document type "category" the tree is filled.

More about processing categories is described in the Programmers guide.