Feeds Tamper: EFQ Finder
Categories
Component ID
1647790
Component name
Feeds Tamper: EFQ Finder
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Ever wondered while mapping things with Feeds and had to map references to anything (Taxonomy Terms, Nodes, etc). You always need to write code everytime and craft complex queries to find the entity you want to reference? Fear not, this is a flexible solution using the awesome Feeds Tamper. The rationale is the following:
- You have a field that references some other data source. Let's say it uses an acronym or code.
- You get this referenced data first, placing the acronym in a normal field (can be even hidden), let's say field_acronym.
- Set up your importer and create a mapper for the field referencing this (entity reference, node reference, taxonomy, etc)
- Add the tamper plugin and select Entity Field Query finder. Select the entity you want to reference, the bundle (both are optional) and type the field name (field_acronym). Also supports columns different than "value" by using, for example: ":city"
- The tamper will then take the value, use EntityFieldQuery to find your entity and replace the value with the entity id.
