projectdoc Toolbox

Specify which properties to materialize as artificial properties by doctype.

ID
projectdoc-materialize-(doctype)
Data Type
list of property paths
Since
4.5

Materializing properties is the process to derive a value from a property path (like Property A->Property B->Property C)  and store it as a property of an artificial document instance.

To materialize properties of a doctype specify the property paths as a comma separated list. Only documents stored after the definition of the space properties will have the materialized properties. Existing documents need to be stored or reindexed again.

The last part of the space identifier is the identifier of the doctype whose properties are to be materialized.

Normalize Value Lists

 

For maximum compatibility make sure that in case of value lists, the separation of list elements should be normalized.

This is only required for macros that render lists and in case you need to render the resulting multi-list. It is recommended that values are separated by comma, since these representation is easily merged.

Details

More information on materialization of document properties.

Example

To define materializers for doctype it-service:

Space Property NameSpace Property Value
projectdoc-materialize-it-serviceType->Sort Key, System->Identifier

Doctype Metadata

The materializers can be defined as metadata to a doctype. Please refer to Doctype Descriptor for details.

Since projectdoc Toolbox 4.5

 

The key projectdoc-materialize allows to define default materializations of document properties.

The property value is a property path, with the internationalization key referencing the localized name of the property.

  <metadata>
    <property key="projectdoc-materialize">
      projectdoc.doctype.common.tags-&gt;projectdoc.doctype.common.type, 
      projectdoc.doctype.common.type-&gt;projectdoc.doctype.common.sortKey
    </property>
  </metadata>

Arrow Character

The arrow character '→' is allowed for "->" to define a path for the materializers.

Resources

Doctypes Overview
List of all doctypes provided by add-ons. Provides an overview over doctype IDs and blueprint keys.
mat
Materialize the controlled property by an artificial property with the given path.
Doctype Descriptor
Describes the doctypes model.