Change data delimiter per field #900
Replies: 1 comment
-
@nilsenpaul I know it's been a while since posting this but one workaround option could be to use the beforeFetchFeed event, to manipulate the XML data before Feed Me processes it, if you can't have the feed data itself changed by whatever provider. https://docs.craftcms.com/feed-me/v4/developers/events.html#data-fetching-related-events You could modify the XML node(s) that currently have an ambiguous delimiter and replace with something like I ended up debugging something similar and found the |
Beta Was this translation helpful? Give feedback.
-
Description
We've run into a situation in which we have an (unchangeable) XML-feed that, within a node uses comma's to separate data. Because we want to turn that data into individual tags, we need to set the
dataDelimiter
config setting to ", ". As a result, other field's (in our case a Redactor field's) content first becomes an array and then gets saved as json.Possible solutions:
feedOptions
config setting.What are your thoughts on this?
Steps to reproduce
Use this input:
Set the
dataDelimiter
to ", " and try to importJobDescription
to a Redactor field.Additional info
Beta Was this translation helpful? Give feedback.
All reactions