Smart Collections

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

The "Smart Collections" plugin automatically updates the linked assets of specific nodes (the smart collections) based on a search filter.

General Properties

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

smartCollections.license

type: String, required: yes, default: -

The license key for the plugin (product: smartCollections), provided by brix.

smartCollections.scheduler.cronExpression

type: String, required: yes, default: -

A Quartz cron expression specifying when the task should run.

Collection Properties

The plugin supports several smart collections. The properties are set in the format smartCollections.<number>.<property> (e.g. smartCollections.1.nodeId). In the following properties <number> = 1 will be used as an example.

smartCollections.1.nodeId

type: Long, required: yes, default: -

The node id of the smart collection. The corresponding node will be filled automatically according to the specified filter.

smartCollections.1.filter

type: String, required: yes, default: -

A filter expression using the anura syntax. Attention: the search_ prefix has to be dropped and search was renamed to text. Ampersand (&) can be escaped by using &amp;.

Additionally there is a node by name filter: One of node_contains or node_startswith has to be set to apply this filter. It also requires the node_type (id) and optionally a node (id) to limit the search. The language parameter is also taken into consideration for the node search.

E.g. smartCollections.1.filter=node=1234&node_recursive=true&infofield=7,true would find all assets linked to the node 1234 (or any sub-node) where the information field 7 (a checkbox) is true (checked)

smartCollections.1.locale

type: String, required: no, default: defaultLanguage

The language used to filter.

smartCollections.1.scope

type: String, required: no, default: -

Exactly like smartCollections.1.filter, but it gets AND-ed with the filter when present, e.g. allowing you to use or_mode in the filter.

Compatibility Matrix

Smart Collections CELUM
1.0 5.13.3
1.3.0 5.13.4
1.4.0 6.4 (tested up to 6.7)

Release Notes

1.0

Initial Version

1.3

Added license

1.4.0

Added scope parameter