I want to pull data from multiple sources (possibly in different formats) into the same nodes. For example, I may want to create and update a bunch of "movie" nodes from a movies.xml file and add the show times for these movies to the same node using movieTimes.xml. I know I can create separate nodes and reference them or create my own processor to save the times in a separate table, but lets say I want to save the times into the same node using a date CCK field without writing any (or much) code. Is there currently a way to do that?
I am working on a processor called additionalNodeDataProcessor which attaches to a parent feed and would only update nodes from that feed (it would not create any nodes). This, in addition to #753426: Partial update of nodes, I believe, would make my scenario possible. Would a patch that used this approach be acceptable? Would you suggest a different approach?
Comments
Comment #1
alex_b commentedThat approach looks solid. Actually all you need from Feeds is #753426: Partial update of nodes as you're looking at implementing a custom processor that does not create new nodes.
Closing assuming that an 'only update' mode is not a feature request at this point. If it *is* - please open a separate issue. Thanks!
Comment #2
andrewlevine commentedIt is actually "update only" mode + the ability to attachment to a parent feed (feed_nid), since the processor will have to have some way to differentiate between distinct and related feeds.
Would you be interested in a patch integrating this functionality into Feeds or do you think it should be a separate custom (maybe contrib?) module?
I am working on this either way so let me know if it would be helpful for me to roll a patch adding this to "core" Feeds module.
Comment #4
sagar ramgade commentedHi,
I am also struggling with the same requirement, I want to save nodes from the first source and update same nodes basically update few cck nodes.
I tried the patch(http://drupal.org/node/753426#comment-3145468) in #753426: Partial update of nodes but it doesn't work, could you please help?
Comment #5
andrewlevine commentedSagar, I have a solution for this problem that depends on #753426: Partial update of nodes getting in. I will conrtibute the module to drupal.org and announce it in this issue once that patch is committed.
Comment #6
sagar ramgade commentedHi,
Thanks for the reply would you mind sharing it, I had applied the mentioned patch.
Thank you in advance.
Comment #7
Marco Palmero commentedsubscribe (and added a few tags)
Comment #8
andrewlevine commentedSagar and Marco (and anyone else), here is the project that makes multiple feeds import into the same nodes: http://drupal.org/project/feeds_node_multisource
Comment #9
sagar ramgade commentedThank you andrew, i truly appreciate your efforts. I will surely test this module.
Comment #10
shaundychkoA solution that's less elegant than http://drupal.org/project/feeds_node_multisource, but which works for me, is to export a feeds config to a module as described on http://drupal.org/node/622698, then modify the feed config and export it again to a second module. So long as both feeds export modules use the same id on the lines:
then they will both import to the same nodes. When one of these modules is enabled, the other should probably be disabled.