Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Often there is the challenge of wanting to be able to set default values for a subtree of other class objects. For example when you have a category and all products below this category have certain technical data in common. Currently you would have to add some "virtual" group product which gets the common product and below this the real products. Without this "group" product you would not be able to set the data once and inherit it to all products below.
#816 suggested multi-class object inheritance - but this approach was based on identical naming of fields for different classes. This seems not optimal to me as it mixes contexts and confuses users with fields which actually do not belong to the class itself.
What do you think of an extra tab in the object edit tab where you can set values for all other classes than the object's class itself? For example when you have a category object you could set attributes of the product class - in fact this would not change the category's object state but these values could be used for inheritance to Product objects below this category object.
I could imagine a similar UI like https://github.com/pimcore/output-data-config-toolkit - a separate tab on object editing listing all classes for each class an edit button which opens a window with the class definition. There you could set the value to be inherited to all objects of the specified class.
This is a "request for comments", so I appreciate any comment about this concept - be it positive or negative.