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

alex_b’s picture

Category: feature » support
Status: Active » Fixed

That 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!

andrewlevine’s picture

It 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sagar ramgade’s picture

Hi,

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?

andrewlevine’s picture

Sagar, 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.

sagar ramgade’s picture

Hi,

Thanks for the reply would you mind sharing it, I had applied the mentioned patch.
Thank you in advance.

Marco Palmero’s picture

Issue tags: +Feeds, +drupal aggregate to comment, +drupal feed aggregator append to a node, +append to same node, +add feed to same node, +rss to same node

subscribe (and added a few tags)

andrewlevine’s picture

Sagar 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

sagar ramgade’s picture

Thank you andrew, i truly appreciate your efforts. I will surely test this module.

shaundychko’s picture

A 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:

...
  $feeds_importer->id = 'myimporter';
...
  $export['myimporter'] = $feeds_importer; 

then they will both import to the same nodes. When one of these modules is enabled, the other should probably be disabled.