Create one feed out of several Drupal feeds?

Events happening in the community are now at Drupal community events on www.drupal.org.
no2e's picture

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)

Comments

+1 this, boss has been

btopro's picture

+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's picture

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's picture

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's picture

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

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

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

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.

Robert Foley Jr
Solutions Architect
http://www.robertfoleyjr.com

Yet another reason to upgrade

mile23's picture

Yet another reason to upgrade to Drupal 7, navigate to: admin/structure/types/manage/[yourcontenttype]/display, add a custom display setting for RSS, and drag-and-drop which content you want to feed out.

Was scheming to do something

greta_drupal's picture

Was scheming to do something similar with a multisite, but mother-of-all-feeds would be published on Drupal site. Looking to do a master Calendar of Events, fed from 9 sites of a network. Loaded up Feeds API, but hadn't gotten very far along with it.

Do report back with your results, would ya.

RSS & Aggregation

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week