Inheritance - hide fields on parent

Hi!

I’m wondering whether it’s possible when using inheritance to hide some fields on the master object? For instance we have values that only need to be filled in on variants but instead of using bricks or adding fields with field collections it would be easier for the end user to just hide the value on the parent instead.

I know this isn’t the proper way and some group of fields we’re adding through the use of bricks and field collections as they do not belong on the parent at all. But since these fields always belong on the variant it would make sense to have them there from the get go.

Or is it possible using listeners to add the values when creating the variant?

Hi,
you could use custom layouts for that and display different custom layouts depending on the object type … see https://pimcore.com/docs/6.x/Development_Documentation/Best_Practice/Showing_Custom_Layouts_based_on_Object_Data.html

BR
Christian

Thanks a lot! I’ll look into this :slight_smile: