Open gRoberts84 opened 3 years ago
@gRoberts84 did you find any solution to make custom fields available in the data mapping dropdown?
Hi,
thx for your issue we will put it into our new evaluation process and have a look at it again.
[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37965.
[created from NEXT-37965, comment 489041]
Description
I have created a custom field for the Category entity and I want to pull that through via Data Mappings on my Category listing layout.
{{ category.customFields.field }}
fails withCall to a member function get() on array
within theAbstractCmsElementResolver::resolveEntityValue
function.The data is available in the entity, however as the element resolver is not able to handle arrays, it fails.
Possible Solution
I had a play around with
Symfony\Component\PropertyAccess\PropertyAccess
, which allows me to access it, however I imagine there is a lot more behind the current resolver that this would not cover.Additional context