Object Bricks for Category-specific Attributes #17090
Replies: 3 comments 3 replies
-
I would either copy the same attributes to multiple bricks and do some custom logic when reading the data for the output channels or think about using the classification store (https://pimcore.com/docs/platform/Pimcore/Objects/Object_Classes/Data_Types/Classification_Store/). |
Beta Was this translation helpful? Give feedback.
-
We have the same problem. We ended up creating a lot of object bricks. We've tried to use custom layouts on object bricks but with no success. |
Beta Was this translation helpful? Give feedback.
-
We assigned the common attributes to a base class and created bricks for each category and distinguished them between product properties, materials, content and texts. In total we have around 40 bricks. We painfully learned later on that having lots of bricks is really horrible because Pimcore takes a lot of time to load the objects. Querying more than like 20 objects at a time with a e.g. listing or via object relation is straight up impossible. To counter this effect we are not implementing "shadow objects" which are just a very small representation of the big class and use that one in object relation fields. |
Beta Was this translation helpful? Give feedback.
-
We are newly adopting Pimcore at the moment and are trying to find the best way to represent category-specific attributes on a product.
Based on the Pimcore courses it seems like Object Bricks are the recommended way to go, however it is not possible for us to have 1 Object Brick per category since some categories share the same attributes and Object Bricks need to have unique fields.
For example:
I have a Product Category that requires the attributes "tip shape" and "tip length"
Now another Product Category requires the attributes "tip shape" and "blade dimensions"
Working with object bricks I would have no other way than to split that up into 3 separate bricks "tip shape", "tip length", "blade dimensions" and usually products have way more category-specific attributes than that.
So we ended up creating over 100 object bricks which makes it pretty much impossible to find and assign the correct ones in the object brick field on a product.
Is there any way to improve this workflow or any other recommendation to go about this problem?
Beta Was this translation helpful? Give feedback.
All reactions