I’m experiencing some weird behaviour with dynamic values referencing metafield text fields. I’m not sure if anything changed, I’m forgetting something or if this is a bug.
I’ve had a field in the theme editor used to render rich text from a metafield, for quite some time (purple) - no issues, it’s rendered like the following in the {template}.json
file
"settings": {
"text": "<p>{{ collection.metafields.namespace.key.value }}</p>"
}
However, currently if I change the dynamic reference or create a new totally identical field, the HTML doesnt compile and the whole field is just rendered as plain text. Thought it was weird, so I checked the value in the json
file and now it gets referenced like this:
"settings": {
"text": "<p>{{ collection.metafields.namespace.key | metafield_tag }}</p>"
}
Edit: for reference, manually changing the | metafield_tag
to simply .value
in the json
fixes it. But that’s not really a good solution.