Property Groups definition
Sometimes you want to add more information to a document, for example, you may want to add an internal code to the document for organization purposes and a description. OpenKM uses two files to describe this metadata: PropertyGroups.cnd and PropertyGroups.xml. The first one describes the properties to be added to the document node. This definition is used by Jackrabbit to retrieve and set these values. The second one is used by OpenKM to render the values described in the previous file.
See this sample:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.1//EN" "http://www.openkm.com/dtd/property-groups-2.1.dtd"> <property-groups> <property-group label="Consulting" name="okg:consulting"> <input label="Code" type="text" name="okp:consulting.code" /> <textarea label="Comment" name="okp:consulting.comment" /> </property-group> </property-groups>
Here we can see an XML which describes the "Consulting" property group with a couple of properties. In the description, we can see an INPUT where the user should type an internal code and a comment which describes the document content.
As you can see in the XML DOCTYPE, there is a formal definition at http://www.openkm.com/dtd/property-groups-2.1.dtd.
But let's see which components it can handle:
See Form Element description for a detailed definition of every form element. These form elements have also an additional property called "readonly" with can be used to make a property not modifiable by the user.