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.
hey
I attached my feed importer to a content type.
The content type has an addiotional reference field.
I want to populate the value of my source content type to the reference field in my feed target.
With feeds tamper, I can set a default value, but this is always the same on all feeds.
I need to copy the value of the content type reference field to my feed target reference field.
Need some help here. I did not get it after some hours.
thx for help.
bennos
Comment | File | Size | Author |
---|---|---|---|
#3 | feeds_tamper-attached_node_data-1651358-3.patch | 2.38 KB | praandy |
Comments
Comment #1
acidpotato CreditAttribution: acidpotato commentedWhat is your fetcher? File, HTTP or something else? If the source data exists and the target field exists you should be able to get the information imported. Also what Tamper plugins did you try?
Comment #2
praandy CreditAttribution: praandy commentedhi,
I have the same problem.
I have a feed importer "attached to" a content type, so with a only feed importer I can have more feed-url with the same structure for the import.
In the content type I have the feed-url and some other fields.
I would like to use the value of the fields (that are in the node with the feeds-url that I use for importing) for modify data in Feeds Tamper.
Is it possible?
Thanks
Comment #3
praandy CreditAttribution: praandy commentedHi,
I have done a new Tamper plugins for my site.
Could it be usefull?
Comment #4
LeoVe CreditAttribution: LeoVe commentedThe patch from praandy works great !, it's so simple to implement and use thanks !
I wonder why not put it in as a standard option?
I also would like to use the nodes language_code for the feed_item creation,, how should one do that?
Thanks
Comment #5
LeoVe CreditAttribution: LeoVe commentedAs a practical workaround I added another field Language to the Feed node. Used that one to set the language of the feed_item created.
Comment #6
behanner CreditAttribution: behanner commentedI was going to use the same solution LeoVe did but couldn't get it to work and after a long time debugging it I discovered that if you are using the Feeds Self Node Processor you need to remove the
if (empty($feed_node))
line otherwise it does weird things.
Thanks to praady for this, only wish I would have found it a year earlier.