While the default behavior (rightly) is to overwrite target values during subsequent imports (when feeds are set to update not replace existing content), occasionally the need may arise for updates to append values instead of overwriting. It would be nice if mappers could support this.

Comments

joshuajabbour’s picture

StatusFileSize
new1.09 KB

The attached patch adds an optional 'target_retain' key to mapper definitions. As of now, this isn't exposed in the UI at all, but can be added manually.

joshuajabbour’s picture

Status: Active » Needs review

this patch does require #996808: Update existing doesn't reset targets that have real_target set. to have been applied already, as that one is a critical bugfix.

joshuajabbour’s picture

Status: Needs review » Needs work

ok, for some reason this sometimes results in duplicate content. no idea why...

mmelkhatib’s picture

Any updates on this feature? I applied the patch but I don't know how to apply the target_retain function to my specific mapper. Any help would be great!

twistor’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)