Added by Arjé Cahn, last edited by Jasha Joachimsthal on Nov 19, 2008  (view change)

Labels:

properties properties Delete
propertiesform propertiesform Delete
types types Delete
webdav webdav Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Webdav properties Hippo CMS 6

Hippo CMS uses various WebDAV properties to attach meta information to resources (documents, folders, assets). They all have the namespace http://hippo.nl/cms/1.0.

  • Protected properties (used internally by Hippo CMS):
    • type
    • index (an integer disguised as an 11 character string)
    • workflowId
    • lastWorkflowUser
    • createdBy
    • publicationDate
    • requestedPublicationDate
    • scheduledPublicationDate
    • lastSaved
    • links
    • references
    • UID
  • Public/dead properties (can be modified by user):
    • caption

If a document has no workflowId property, Hippo CMS will create this property when the user selects that document by clicking on it's name in the document listing.

The properties form

A little form in the bottom right corner allows users to edit properties. It can be configured as follows.

In types.xml, a custom properties file can be specified:

<?xml version="1.0"?>
<types xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
  <resources default="text">
    <!-- Text template with properties -->
    <resource name="text" label="Text">
      <schema>context://types/text/text.xsd</schema>
      <template>context://types/text/text.xml</template>
      <css>context://types/text/text.css</css>
      <layout>context://types/text/layout.xml</layout>
      <bl>context://types/text/business_logic.xml</bl>
      <i18n>context://types/text/i18n</i18n>
      <properties>context://types/text/properties.xml</properties>
    </resource>
    <!-- Collection (folder) with properties -->
    <resource name="collection" label="types:cms.types.label.collection" type="abstract" i18n:attr="label">
      <properties>context://types/collection/properties.xml</properties>
    </resource>
  </resources>
</types>

The properties file should look like this:

<Properties>
  <Property>
    <Name>exampleDate</Name>
    <DisplayName>Example Date Property</DisplayName>
    <Namespace>http://hippo.nl/cms/1.0</Namespace>
    <NamespacePrefix>cms</NamespacePrefix>
    <Datatype>date</Datatype>
  </Property>
  <Property>
    <Name>exampleString</Name>
    <DisplayName>Example String Property</DisplayName>
    <Namespace>http://hippo.nl/cms/1.0</Namespace>
    <NamespacePrefix>cms</NamespacePrefix>
    <Datatype>string</Datatype>
  </Property>
  <Property>
    <Name>exampleEnum</Name>
    <DisplayName>Example Enum Property</DisplayName>
    <Namespace>http://hippo.nl/cms/1.0</Namespace>
    <NamespacePrefix>cms</NamespacePrefix>
    <Datatype>string</Datatype>
    <Enum>
      <Label>Value 1</Label>
      <Value>value1</Value>
    </Enum>
    <Enum>
      <Label>Value 2</Label>
      <Value>value2</Value>
    </Enum>
    <Enum>
      <Value>value3</Value>
    </Enum>
  </Property>
</Properties>

This example will give the following properties form:

If no custom properties file is specified, the default on will be used. This file can be found at http://svn.hippocms.org/repos/hippo/hippo-cms/trunk/editor/src/site/explorer/resources/xml/proplist.xml.

An XML Schema for the properties file can be found at http://repository.hippocms.org/schemas/cms/properties.xsd.

Problematic characters in property values

Known to give errors are the following characters: space @ & . < > \ / ?

Make sure these characters are never used in property names and values.