Download the PHP package jvmtech/selective-mixins without Composer
On this page you can find all versions of the php package jvmtech/selective-mixins. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package selective-mixins
JvMTECH.SelectiveMixins Package for Neos CMS
Create granular, reusable NodeTypes with ease. Best use with Props.Mixins per presentational components.
-
Load mixins multiple times in the same NodeType
➔ You've ever overwritten properties by choosing a not unique property name? Use our namespaces and ane the properties like what they are.
-
Choose properties you'd like to load
➔ You don't need a property? So don't include, not just hide it.
-
Extend labels of props and groups recursively
➔ You don't have to repeat the properties label text ever and ever again. Extend it.
-
Merge groups to match editor needs
➔ Combine multiple props of multiple mixins for a new purpose? Do it.
Schema
Example A
Create a presentational frontend component:
Create a corresponding reusable Props Mixin which reflects the needed Props:
And create a matching Props Fusion to load the component specific data:
Now create a Content NodeType where you reuse this Props-Mixin and -Fusion as often as you like - with different namespaces:
The generated NodeType will look like:
Example B
Merging Inspector Groups to recombine Props-Mixins (only works with options.superTypes):
The generated NodeType will look like:
Upgrade Instructions
1.x to 2.x
Since 2.x SelectiveMixins does properly support nested props.
Example:
Therefor the fundamental prototype and mixin JvMTECH.SelectiveMixins:Data
is now used for property loading only, and the new JvMTECH.SelectiveMixins:Props
is there to create props.
And if you did use nested workarounds with something like SelectiveMixins.Array.toCamelCase([props.namespace, 'something'])
you now probably just need 'something'
or SelectiveMixins.Array.toCamelCase([nestedNamespace, 'something'])
.
Tests
Run the following test in your project to make sure the Selective NodeType generation is still working as expected, even after upgrades:
Installation
by jvmtech.ch