Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Multi-class inheritance #5301

BlackbitNeueMedien opened this issue Nov 20, 2019 · 0 comments

RFC: Multi-class inheritance #5301

BlackbitNeueMedien opened this issue Nov 20, 2019 · 0 comments


Copy link

@BlackbitNeueMedien BlackbitNeueMedien commented Nov 20, 2019

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 - 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.