-
- 209 Posts
Steps for doing this idea may look like (for one specific rss channel):
1) obtain rss data through fopen(’url_of_your_rss_channel’) function - it will return XML document,
2) split obtained XML data into two formal arrays with xml_parse_into_struct() function - it returns index and values of all tags (see PHP manual for details),
3) now apply some logic - taking advantage of index and values built in step 2) retrieve values from tags of your interest,
4) form a HTML code/document for displaying on your page.
------------
Repeat for each rss channel to be imported.
(Writing a class for doing this task should be an excellent idea.)
-
- 58 Posts
Unless I’m misunderstading what you require there is product called carp_se_4 which would fit the bill. This lovely piece of software takes an rss feed and converts it via a database into content which you can put onto your site, you can even blend content from multiple rss streams.
-
- 741 Posts
Nope sorry... Didn’t have the time yet to create something like this!
with regards,
Ronald Lokers
'Front-end developer' @
h2o Media
I believe you will find half your work done for you in using feedx
http://www.stanback.net/code/modx/feedx.html
All you have to do is assign a template to the page and call the snippet.
It pulls a vast number of feeds of various types. I have only had issues when someone included & in the title of the feed.
-
- 741 Posts
Yes, but I need to import the feeds as documents. I don’t think feedx can handle that part for me.
I need this to combine multiple feeds sorted on date in a paginated overview
with regards,
Ronald Lokers
'Front-end developer' @
h2o Media
I remember reading somewhere (to far back to remember) of someone pulling a bunch of feeds into a single feed and then pulling that.
Another option, would be to have feedx called multiple times on a page.
Are you trying to archive these feeds for a long period of time, or is there another purpose?