Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello. I use tamper to explode field with comma separated tags ([source1])
then i need to create tamper for [source2] to rewrite field like:
Blabla [source2] [source1]
But get Blabla text source2 Array.
If i delete explode tamper for source1 - it works, but i need it for strip tags.
Any reviews?
Comments
Comment #1
twistor CreditAttribution: twistor commentedComment #4
twistor CreditAttribution: twistor commentedComment #5
maximpodorov CreditAttribution: maximpodorov commentedThis is completely wrong solution. You just drop all values of multivalued field except of the first one instead of applying the pattern to all the values.
Comment #6
twistor CreditAttribution: twistor commentedHow would you propose I apply the pattern to all the values?
My fix works for most cases, since the field is most likely single-valued, just wrapped in an array.
If you want to support this, please create a feature request. I think you might be referring to #1461308: Enabled "multi: loop" for the rewrite plugin which is a different issue.