Download & Extend

Use multiple data sources/parsers to save into the same nodes

Project:Feeds
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:add feed to same node, append to same node, drupal aggregate to comment, drupal feed aggregator append to a node, Feeds, rss to same node

Issue Summary

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

#1

Category:feature request» support request
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!

#2

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.

#3

Status:fixed» closed (fixed)

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

#4

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?

#5

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.

#6

Hi,

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

#7

subscribe (and added a few tags)

#8

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

#9

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

#10

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:

<?php
...
 
$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.
nobody click here