Dashboard > Hippo CMS > ... > Reference > Input Module Reference
Input Module Reference
Added by Jeremy Quinn, last edited by Dennis Dam on Apr 12, 2007  (view change)
Labels: 
(None)


Hippo has several custom Input Modules that you can use in your projects. What are they and how are they used.

TODO: finish this ....

Hippo has developed a few custom InputModules that can help when you are developing Hippo Site projects :

Repository Input Module

Site Input Module

SourceProperties InputModule

Returns a WEBDAV property value for a given repository document. The configuration of the SourcePropertiesInputModule in cocoon.xconf might look like this (taken from HippoCMS code):

<component-instance name="object"
                      class="nl.hippo.cocoon.modules.SourcePropertiesInputModule"
                      logger="core.modules.object">
    <src>repository:/{request-param:objectUri}</src>
    <namespace prefix="D" uri="DAV:"/>
    <namespace prefix="H" uri="http://hippo.nl/cms/1.0" default="true"/>
  </component-instance>

src is used by the input module to determine from which document property values are read. On every call to the inputmodule, this expression is evaluated. In this expression, you can use references to other inputmodules.

The namespace elements define prefixes for namespaces of WEBDAV properties. If you want to read a property value in a certain namespace, you have to add the namespace in this configuration.

An example of the usage of the inputmodule in a sitemap:

<!-- example 1: basic usage -->
<map:parameter name="value" value="{object:H:foo}"/>

The prefix H refers to the namespace prefix from the configuration. foo is the property name. If no namespace prefix is supplied, then the default namespace from the configuration is used. E.g.:

<!-- example 2: using default namespaces -->
<map:parameter name="value" value="{object:foo}"/>

leads to the same result as in example 1, if the namespace "H" has it's default flag set to true in the inputmodule's configuration.

From hippo-cocoon version 2.1.8.14, there is also an explicit method of providing a source document, using the @-postfix:

<!-- example 3: using explicit source reference -->
<map:parameter name="value" value="{object:H:foo@repository://content/foo/bar.xml}"/>

The part after the @ character is used to resolve the source document from which to read the property value.

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.7 Build:#813 Aug 28, 2007) - Bug/feature request - Contact Administrators