Download the PHP package jvmtech/nodeaggregateproperties without Composer
On this page you can find all versions of the php package jvmtech/nodeaggregateproperties. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jvmtech/nodeaggregateproperties
More information about jvmtech/nodeaggregateproperties
Files in jvmtech/nodeaggregateproperties
Package nodeaggregateproperties
Short Description Node aggregate-properties emulation for Neos 8
License MIT
Informations about the package nodeaggregateproperties
JvMTECH.NodeAggregateProperties
Emulates node aggregate-scoped properties on Neos 8. Neos 9 introduces native support for properties
scoped to the whole node aggregate instead of a single dimension variant; this package backports that
behavior to Neos 8 ahead of the upgrade. The scope: 'nodeAggregate' property configuration is
compatible with Neos 9, so NodeTypes configured for this package require no changes once the project
upgrades.
Properties marked with scope: 'nodeAggregate' are automatically replicated across all dimension
variants of a node whenever one variant is changed, so the property behaves as if it were shared by
the whole node aggregate rather than a single variant.
This package is inspired by PunktDe.NodeReplicator.
How it works
NodeSignalInterceptorlistens forNode::nodePropertyChangedand checks whether the changed property is configured withscope: 'nodeAggregate'.NodeReplicatorthen propagates the new value to all other dimension variants of that node, guarding against infinite recursion while doing so.NodeTypePostProcessoroptionally adds a help message to the backend UI for everynodeAggregate-scoped property, so editors understand that the value applies to all languages/dimensions.
Configuration
Package settings (Settings.yaml):
setHelpMessage— whether to add the help message tonodeAggregate-scoped properties.overrideHelpMessage— whether to override an existingui.help.messageon the property.helpMessagePath— the translation path used for the help message.