Create one feed out of several Drupal feeds?

I have a multi-site Drupal installation. Each multi-site is a subdomain of example.com (like ms1.example.com, ms2.example.com, etc.)

Now, the homepage (http://example.com) is not run by Drupal, but I want to insert a feed, which consists of a mash-up of several selected feeds of the subsites. And this new feed shall not have the URL of a subsite, but the URL of the homepage (where no Drupal is installed).

Example:

the feeds

  • sub1.example.com/new-nodes.rss
  • sub2.example.com/feed.rss
  • sub3.example.com/blog.rss

shall become one feed at "example.com/overview-feed.rss" (although example.com is no Drupal site).

Is this possible? I don't want to rely on a hosted service, I want to do it with my own shared hosting account / server. (I'd prefer an Atom feed, if possible)

Login to post comments

+1 this, boss has been

btopro's picture
btopro - Tue, 2009-03-03 03:37

+1 this, boss has been asking for something like this for awhile; hoping someone else has created this before I go and do it myself :)

"Plaguing the world with Drupal; One Plone, Moodle, Wordpress, Joomla user at a time since 2005." ~ btopro

http://elearning.psu.edu/
http://elearning.psu.edu/projects/
http://elearning.psu.edu/drupalineducation/


I haven't tried it, but I

Garrett Albright - Tue, 2009-03-03 16:31

I haven't tried it, but I believe you should be able to do this by using Drupal's built-in aggregator feature on one of the Drupal-powered sites. Create a new category and add all the "sub-feeds" to it. Then navigate to that category page. You should see your browser's auto-feed detection badge/icon activate, or check out the source code to find it manually.


this feed at non-Drupal site?

no2e - Tue, 2009-03-03 17:54

Ok, aggregator creates a new feed of those existing feeds. How can I give this new feed a new URL, which is not mandated by Drupal? I want this feed to have the URL "example.com/overview-feed.rss", but example.com is a hand-crafted static website.

Is it possible to "copy" the new Drupal feed to "example.com/overview-feed.rss"?


For that, you'd probably

Garrett Albright - Tue, 2009-03-03 18:40

For that, you'd probably have to do some redirection trickery with the example.com server using .htaccess or similar configuration files for whatever web server software you're using.

Or, worse comes to worse, you could install a dedicated feed aggregator script at example.com. I believe SimplePie comes with sample scripts that are capable of this.


Would you be able to do a

btopro's picture
btopro - Tue, 2009-03-03 19:24

Would you be able to do a url alias that looks like an rss feed?

As a more extreme solution that I know would work... you could pipe all the feeds into your one site and store local / synced up copies with something like Feed API or Leech. Then use Views2 to create a custom view of those nodes that came from the external feeds and kick out the display type as another feed.

"Plaguing the world with Drupal; One Plone, Moodle, Wordpress, Joomla user at a time since 2005." ~ btopro

http://elearning.psu.edu/
http://elearning.psu.edu/projects/
http://elearning.psu.edu/drupalineducation/


hit's self on head

btopro's picture
btopro - Tue, 2009-03-03 16:53

I shoulda had a V-8. Ya, I've already done this on other sites, this will accomplish this very nicely and is built in.

"Plaguing the world with Drupal; One Plone, Moodle, Wordpress, Joomla user at a time since 2005." ~ btopro

http://elearning.psu.edu/
http://elearning.psu.edu/projects/
http://elearning.psu.edu/drupalineducation/


Generic feeds

emptyvoid's picture
emptyvoid - Wed, 2009-03-11 18:09

Hello,
Yeah generic feeds with only a teaser and title are completely supported in Drupal out of the box. For anything more sophisticated you would have to built your own custom module or use CCK and views.