dev-master
9999999-devAdd metadata to your dataobjects via many_many_extraFields
MIT
The Requires
by Mellisa Hankins
silverstripe metadata many-many mwm dataobjects
Add metadata to your dataobjects via many_many_extraFields
Dataobject Metadata is a simple example for implementing the AEV (Attribute-Entity-Value) Model in Silverstripe using many many extra fields., (*1)
Why? Some dataobjects are constantly changing, variable in nature (such as products) and need to be more flexible, hence won't always work with adding columns continually that won't be used anyway. This is where this module comes in., (*2)
This isn't really usable as is, and will require you to install one of the suggested modules so you can manage the extra fields correctly, or you can use the built-in GridFieldDetailForm to manage the attributes without another module., (*3)
Downside, only usable in collections, but this is what I mainly use it for anyway., (*4)
Add the following to your composer.json file, (*5)
"require" : { "milkyway-multimedia/ss-dataobject-metadata": "dev-master" }
And add an extension to your DataObject in your YAML config:, (*6)
Product: extensions: - Milkyway\SS\Metadata\Extensions\Metadata('RelationName (optional - will use the name of owning object for relation otherwise - in this case Product)')
Add metadata to your dataobjects via many_many_extraFields
MIT
silverstripe metadata many-many mwm dataobjects