feeds_conditional_tamper
Extends the Feeds Tamper module with two plugins that conditionally skip a feed item or a field value based on a configurable condition. The condition is evaluated against any source field in the feed row, or against the field value being tampered itself.
REQUIREMENTS
- Drupal 10.2 or 11
- tamper (drupal/tamper)
- feeds_tamper (drupal/feeds_tamper ^2.0)
INSTALLATION
- Place the module at docroot/modules/custom/feeds_conditional_tamper/.
- Enable it: ddev drush en feeds_conditional_tamper -y
- Rebuild the cache: ddev drush cr
PLUGINS PROVIDED
Skip item on condition (skip_item_on_condition) When the condition is TRUE, the entire feed row is dropped â the node (or other entity) is not created or updated for that row. Equivalent to the built-in "Required" plugin, but driven by a flexible comparison rather than a simple empty/not-empty check.
Skip value on condition (skip_value_on_condition) When the condition is TRUE, only the current field value is cleared (set to NULL). The rest of the feed row continues to be processed normally â the node is saved, but that particular field is left empty.