- Issue created by @bwoods
- π³π±Netherlands megachriz
Can you share your configuration and the source data?
There is a known issue at least with the Rewrite plugin that it cannot iterate through values properly. See #3224959: Rewrite plugin: iterate through values to rewrite β .
- πΊπΈUnited States bwoods
Thanks, @megachriz! Not sure how I missed this in my search of the queue - I think this patch may work for my case. I will report back with more info if I'm still hitting a wall.
- πΊπΈUnited States bwoods
@megachriz, I believe the main problem I was running into is that by using Feeds: Source as a source, I was unable to use a multivalue target. I tried the Tamper patch and several other options to no avail. I ended up making this adjustment:
- Created a temporary target with Feeds: Source as the source.
- Created a blank source with my multivalue field as the target.
- Wrote all of the logic in a custom plugin, with the output as a string.
- Used this plugin plus the Explode plugin to populate the multivalue field.This definitely would have been much easier if the data itself had contained the variable I was sending to do the lookup. As a basic example, the API I'm hitting is something like apisite.com?q=varid%3A%22123-456, but varid isn't actually returned in the dataset. So I have to parse 123-456 from the feed source to do the manipulations.
I'm guessing this is pretty rare and maybe not too useful in most use cases, as I can't think of a reason Feed:Source should be able to process multivalue field targets anyway. So unless you think this should work and/or could be useful to others, I think it's appropriate to mark this as Closed "won't fix" or "works as designed."
Thanks again for your help and your work on these great modules!