tags:

views:

52

answers:

2

Hi,

I've got an application developed on top of DokuWiki. I'd like to provide a 'News' page providing the latest updates from the internal RSS feed, some other feeds maintained in Serendipity and potentially other locations.

Although its trivial to attach feed parsers to each one individually, I'd like to aggregate this into a single list (possibly a single RSS feed).

Both the DokuWiki and Serendipity servers are not connected to the internet - so I can't use an external service for this - looking for code.

Anybody got any ideas?

TIA

C.

+2  A: 

Basically speaking, you'll have to :

  • Fetch the entries from both feeds
  • Merge them into an array of entries
  • Create a new feed, with your own headers, and containing those entries.


A couple of tools that could probably help :

And you might want to take a look at padraic / ZFPlanet : it's an aggregator -- there are probably some ideas in there that could help you get started ;-)

Pascal MARTIN
Thanks PM, I prefered Andreas' solution as it uses code I've already got rather than a whole new framework.
symcbean
+1  A: 

DokuWiki already comes with the SimplePie feed aggregation library so you can use that without the need for any additional libraries. Some tips on how to merge two feeds can be found in their documentation:

Andreas Gohr
Using the code I've already got seems like a sensible approach - only problem is that SimplePie doesn't find any items in the output from feed.php (although the content displays fine in other readers, and when I tested with a newer DokuWiki it worked fine). Stil I reckon I'm nearly there, Thanks
symcbean