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.
I used Feeds some years ago in a normal way (importing & tagging nodes)
Now i wish to import and create nodes only by the terms that exists and avoid to
import not matching feeds.
Before going on work..it's possible ?
Thx
Comments
Comment #2
senzaesclusiva CreditAttribution: senzaesclusiva commentedComment #3
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedYes, I think this is possible with the Feeds Tamper plugins "Entity Field Query finder" and "Required field".
This should result into that an item is not imported if it uses a term that doesn't exist in the vocabulary.
If this doesn't work or your conditions are more complex you could also either implement the hooks
hook_feeds_after_parse()
orhook_feeds_presave()
to remove or skip items.Comment #4
senzaesclusiva CreditAttribution: senzaesclusiva commentedThanks MegaChriz for your kind answer.
I don't need more complex conditions; only avoid to create tons of "orphan nodes" that doesn't match with vocabulary content.
I'll try your step-by-step hint tomorrow morning.
Have a nice day