OpenWGA 7.9 - OpenWGA Concepts and Features

Design and development » HDBModel framework » Tag reference for hdb-model.xml

<relation>

Description: This tag defines a relation for a content class.
Valid under tags: <content>
Subtags: <custom>
<order>
<param>
<where>
Attributes:

baseclass="<content-class>" (optional)

Identifies a base class which limits the scope of allowed target contents for this relation. The given content class must be from a parent content of the current content. HDBModel will only allow target contents that are below the same base class content as the current content.

filter="<filter-name>" (optional)

Specifies a filter defined on the content of the target class which should be used to find valid target contents for this relation. Only documents that match the filter conditions will be offered as relation target.

group="true|false" (optional)

Determines if this tag defines a single relation or a relation group, allowing multiple targets per content. Defaults to false.

name="<relation-name>"

Determines the relation name. Use alphanumeric characters plus "-" and "_".

optional="true|false" (optional)

Determines if setting the relation is optional. Setting this to true will allow users to choose "none" as relation target. Only applies to non-group relations. Defaults to false.

targetclass="<content-class>"

Determines the content class of contents allowed as relation targets.