Hi,

I get the wrong message upon importing nodes. Not sure if this is by design of if it is a bug.
Here's the situation:

I have two feed importers:
Youtube video's feed -> attached to content type feed -> node processor set to create cotent type: youtube video
Newsitems feed -> attached to content type feed -> node processor set to create content type: news item

I have two nodes of content type feed:
title: Youtube.com feed -> url set to youtube.com/user/etc/etc
title: News.nl feed -> url set to news.nl/rss/etc/etc

When I click import on either one of those nodes I always get the message:
'Created X youtube video nodes'.

I guess this has to do with both feed importers being attached to content type feed.
Do I have to create a content type for each importer? Basically all the content type feed asks for is
a title and an url? Wouldn't it be an idea to also be able to set which importer had to be used for
a node of the content type feed. Otherwise I would have to create a content type for each single
importer and each of these content types would one have one node.

Hope I explained the situation well, if not please ask for more info.

Cheers,
Bartezz

CommentFileSizeAuthor
#4 feeds-module.gif87.11 KBBartezz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex_b’s picture

Title: Wrong system message on importing nodes » Enforce only one importer per content type
Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Component: User interface » Code

Do I have to create a content type for each importer?

Yes. In fact, we should inforce that.

Bartezz’s picture

Ok thanx for your fast reply!

What about having a cck-type field in which you can select which importer should be used for that node?
That would save some content-types. Would be a bit too much to create 10 content types, for only 10 feed-type nodes in my opinion.
That's a one on one relation, while most of times you create one content type to create multiple nodes.

Cheers

alex_b’s picture

CCK/FieldAPI field is a good idea, I think this is what we should do for Drupal 7. I don't want to invest in CCK work when the API is completely going to change with Drupal 7.

Would be a bit too much to create 10 content types, for 10 feed-type nodes don't you think?

Why would you create that many importers that need to be attached to content types when there is a stand alone form? I am serious, I would love to hear your use case...

Bartezz’s picture

FileSize
87.11 KB

Hi Alex,

Well I might be going about this all wrong then, this is my use case:

I have two external rss feeds, one supplies news the other one supplies youtube videos.
Because these will have to go into different content types due to different data being supplied I have created two feed importers.
For both feed importers the mapping ofcourse is different.

I was using the Feed content type supplied by your module to create to nodes in which I set the urls to the external rss feeds.
So I ended up with two nodes of the type 'feed'. One with the url of the news rss feed, and another one with the url to the youtube rss feed.

While I was typing this I thought it might be better to start all over, so I deleted everything, uninstalled and reinstalled the module.
I have everything set up as the attched image. But now I'm getting an error: Download of failed with code -1002.

Guess this also because I'm using two nodes of the same single Feed content-type to call on two different importers?

Please tell me if you need more info.

Cheers,
Bartezz

PS. Which stand alone form are you taking about? This one: admin/build/feeds/edit/youtube_video_s_feed/settings/FeedsNodeProcessor

alex_b’s picture

I am talking about the forms that appear on mysite.com/import if you *don't* choose a content type in the Basic settings.

anonymous07’s picture

Subscribe. I have experienced the same issue.

I don't like the idea of creating a separate content type for each feed document.

This is my scenario (I originally erroneously thought it was a pathauto issue and reported it here: http://drupal.org/node/857904#comment-3218378)

1) Drupal 6.17, Pathauto 6.x-1.3, Feeds 6.x-1.0-beta3

2) Create 2 Content Types (let's say "TypeA", "TypeB")

3) The two content types share a CCK field ("Original Article") ...
which happens to be a url link to the original url of the individual
item included in the feed

4) Items of the content types will be created by the two separate RSS Feeds
via Feeds Module. (Both Feed Importers are tied to the same Content Type called "Feed"; the individual feed items should be content type "TypeA" and "TypeB")

5) In Pathauto "node path settings," set:
"Pattern for all TypeA paths:"
typea/[title-raw]
"Pattern for all TypeB paths:"
typeb/[title-raw]

6) Result: Both TypeA and TypeB nodes are being created as TypeB content types and pathauto: typeb/[title-raw]

Only way to get it to work so far is to have the Feed Importers point to different content types for the feed definition -- not desirable at all.

Bartezz’s picture

Hi Alex,

I had a look at the basic settings but there is no way to not select a content/node-type for the node processor.
If I go to /import I only see the two feed importers I have created... with links to create a node... nothing else.

Again I think it would improve usability to have an option in a feed content/node-type to select which importer should be used for that particular feed node.
So one would be able to enter a url to the feed plus which importer to use.

In the feed importer it has already been set which content/node-type to use for output.

So workflow would be:

* create one or more feed importers, attach all to content type Feed, based on the data source these whill have different mapping and will output different content/node-types (node-processor)
* create one or more nodes with the feed content/node-type and enter the url to the data source and which processor to be used

Instead of:
* create a content/node-type FeedX
* create a feed importer, attach to content type FeedX under basic settings, set to output content type news under Node Processor
* create node of content type FeedX and enter the URL to the data source
* create a content/node-type FeedY
* create a feed importer, attach to content type FeedY under basic settings, set to output content type youtubevideo under Node Processor
* create node of content type FeedY and enter the URL to the data source

Hope I'm explaining it well...

Cheers,
Bartezz

Bartezz’s picture

No news yet?

Cheers

alex_b’s picture

I had a look at the basic settings but there is no way to not select a content/node-type for the node processor.
If I go to /import I only see the two feed importers I have created... with links to create a node... nothing else.

You need to look under admin/build/feeds and edit (override) one of the importers there.

wmfinck’s picture

This same problem is really hampering a project I am trying to set up. Audio feeds and news feeds, two importers created from scratch, each set up attached to a feed item, each set to create a node of a particular custom type for items from the feed, but the system is ignoring one node type, no matter what I have tried. Even disabling one feed importer and importing with the other does not help! If I ever knew that the Feeds module was going to do this, I would not have spent any time with it. Any help would be deeply appreciated!

Importer A--> Feed A--> nodes containing audio links of different categories--> custom content type "audio feed"--> data presented using Views with an exposed filter for taxonomy term in a custom taxonomy library for this node type.

Importer B--> Feed B--> nodes containing various news items of different categories--> custom content type "news item"--> data presented using Views with an exposed filter for taxonomy term in a custom taxonomy library for this node type.

There can be multiple feeds of type A or type B, but in order to keep the data and tags separate so that they can be presented logically in different parts of the site, they each need have their own content type.

The bottom line is, that Feed A and Feed B are both creating nodes of one type, even though they are configured to create nodes of different types. Therefore I believe that this is a bug, and not a feature request. Please help!

wmfinck’s picture

Okay, I might be sounding like a pain in the butt, however if I cannot classify content aggregated from other places, then what is the use? I guess there are some sites where it doesn't matter much.

Anyway, I do believe that the Feeds module has potential, however for the project I am working on, I have had to go with the Aggregation module. That module, while a little clunky, has allowed me to add my own taxonomy term to each feed, and therefore I can use that method to present the various categories of aggregated data. It also has its own built-in image grabber, and maintains a link to the original site post as well.

I guess I will stop back here when Drupal 7 is released, to see what feeds is doing.
Thank you!

anonymous07’s picture

And I HATE to sound like a complainer with all the hard work put in by the maintainer .... but

I miss basic D5 FeedAPI ... big time.

After dealing with the unique content type for each feed importer issue, I am now dealing with Feeds creating duplicates of every feed item, every refresh. I have yet to figure out how to stop that. No combination of "Replace existing nodes" or "Update existing nodes (slower than replacing them)" is addressing it either.

</end ungrateful-sounding rant>

Anonymous’s picture

Would be nice to choose your multiple importers on 1 content type.

A select list with

- Importer A
- Importer B

and then the relevant fields shows, with ajax or collapsible fieldsets.

bkloef’s picture

I was experiencing the problems described here (multiple Google calendar feeds designated for multiple event content types on a 1-to-1 basis, but getting an odd mix of where they actually ended up).

My solution is probably overkill, but it was the only way I managed to get this to work.
1. Create a content type for each event (i.e. event_leaders, etc.)
2. Create a content type for each feed type (i.e. event_iCal_leaders, etc.)
3. Create each feed FROM SCRATCH (no cloning!) - I haven't been able to do enough testing to declare this a bug, but I suspect it is.

Now, every event goes exactly where it's supposed to. This is not really an acceptable solution (10 content types and full manual configuration of five feeds), but it gets the job done right now.

-Brian

alex_b’s picture

#14: Why did you not use the standalone form?

bobgeier’s picture

suscribing

doompal’s picture

Did this work? And what fields do your extra feeds require. I'm really struggling with Feeds.

Anonymous’s picture

@why not using a stand-alone form,

so you can go back and re-edit, change a feed, fix a mistake, etc. etc.

The holy grail for feeds seems to be:
- 1 feed node (import form)
- select importer
- select target node type
- inherit fields / taxonomy / language / author
- choose mapping schema with option to make changes specific to the current feed

doompal’s picture

#18
The stand-alone form had no parent feed nid which I was using to distinguish feeds. I have some feeds which are okay as they are, others I want to filter with tamper.

ryanrain’s picture

Searching for Drupal 7 issues I missed this thread and posted a similar feature request at http://drupal.org/node/1611750

twistor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)