Flowpack.NodeTemplates
Flowpack.NodeTemplates copied to clipboard
FEATURE: Deprecated `triggeringNode` in favour of `site` and `sourceParentNode`
Introduce parentNode as reference to the parent of the node the template is initially applied on. The parent of the outermost node the Neos UI creates.
We should wait with merging this, as parentNode meant something else in V1, and was breaking removed in V2.
So is this PR now breaking or what should we wait for?
No its just unexpected, but then again when migrating from v 1.x its not less unexpected that parentNode will be null, so we might as well give it already new purpose with 2.1
I added a warning in the readme ;)
Warning The behaviour of
parentNodechanged from version 1.x to 2.x
As discussed in todays weekly with christian and paula, we concluded that parentNode and site are good new variables.
The confusion as parentNode existed beforehand with different meaning should be minimal and will be documented.
Version 2 is out since 1 year so enough time has passed for us to make such behaviour change. Also as parentNode doesnt exist in 2.0 yet this can be perfectly legal released as minor change.
https://github.com/Flowpack/Flowpack.NodeTemplates/pull/70#discussion_r1648764876