Hello, I have read the documentation for creating feeds tamper plugins, however I don't see whether there is a capability of tampering with the feed so that new_val = F(old val, feed_src_val).

e.g. compare existing with source value and decide which one to set or increment / decrement the existing value by the source value.

If I understand the Feeds code correctly, it erases the existing value prior to importing, so I don't know if there is any way to access it unless you query the db or create a custom feeds processor.

It would be awesome if feeds tamper could expose this capability.

Thank you

Comments

leofishman’s picture

Issue summary: View changes

I need this feature too,

Have different feeds importer, each one setting a taxonomy term in the node, one the same feed came form different importer, I need to have all terms in the taxonomy, and now I only have one, either the lastone or the first.

Thanks

twistor’s picture

@leofishman it doesn't sound like you're having the same issue as the original post.

@marktheshark, that is correct. Currently, there is no way to get the original value without querying the db in some way.

Advin’s picture

Issue summary: View changes

You can do it using rules (Feeds Rules module). Simply add temprary field to entity and use rules (react on event «Before saving an item imported via ... ») to modify base field value according to temporary field value.