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

twistor’s picture

Title: Rewrite string source + Array » Rewrite plugin and multiple values.
Version: 6.x-1.x-dev » 7.x-1.x-dev
Component: Documentation » Plugins
Category: Support request » Bug report
Issue summary: View changes

  • twistor committed e864a94 on 7.x-1.x
    Issue #1471636 by makkon: Fixed Rewrite plugin and multiple values.
    

  • twistor committed 2cad088 on 6.x-1.x
    Issue #1471636 by makkon: Fixed Rewrite plugin and multiple values.
    
twistor’s picture

Status: Active » Fixed
maximpodorov’s picture

Status: Fixed » Active

This 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.

twistor’s picture

Status: Active » Fixed

How 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.