Node Name to Infofield

For the most up to date documentation please visit docs.brix.ch

The "Node Name to Infofield" plugin fills the sort-infofield-value with the node name when a new node is created or the name of a node has changed. There is also a task which fills the sort-infofield-value of each node if they are empty.

This is a workaround that can be used in conjunction with tree.containerTreeOrderByResolver=customFieldContainerTreeOrderByResolver, as this resolver currently "randomizes" the sort order if the sort information field is empty (instead of falling back to the node name).

Properties

To be configured in {home}/appserver/conf/custom.properties.

nodeNameToInfofield.sortFieldId=

type: InformationFieldId, required: yes, default: -

The information field to copy the node name to.

nodeNameToInfofield.nodeTypeIds=

type: List of NodeTypeId, required: yes, default: -

Whitelist of node types that sould be affected by the plugin. This should probably reflect those configured in tree.containerOrderByCustomField, but doesn't have to.

nodeNameToInfofield.overwriteSortField=

type: String, required: yes, default: false

If true, the configured information field will always get updated with the node name, even if it already has a value.

1.0.0

Initial Version