Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » xml feeds

#1 2009-10-12 17:39:47

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

xml feeds

Is it possible to take article excerpts from multiple txp sites and display on another txp site via xml? I havn’t googled it yet, thought I would ask first. I have several local sites that have content providers put in event’s and I’m thinking about making a small portal site that would make use of info from the other sites I’ve built.
-thanks in advance
kevin

Last edited by kvnmcwebn (2009-10-12 17:40:33)


its a bad hen that wont scratch itself.
photogallery

Offline

#2 2009-10-12 18:08:00

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: xml feeds

Hi Kevin

It is very possible:) And you are provided with options too:)

Option 1. use a plugin like the simplepie plugin whose job is parsing feeds. The caveat is that you will also need a CRON script to delet the cache which means that the portal site will not be updated in real time.

One which I prefer is:

Option 2: using rah_external_output

Create the tags you want in the extensions and then bring them all together in the portal site using some basic php

<txp:php>include($DOCUMENT_ROOT . "http://external_site.com/?rah_external_output=some_name");</txp:php>


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-10-12 19:32:27

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: xml feeds

wow that’s cool colak .
I’m going to read up on the rah plug in now.
Just curious how much harder is it to bring in xml feeds from non textpattern aspx sites?
Or does it just require a wee bit more php?
Thanks a mill.
-kevin


its a bad hen that wont scratch itself.
photogallery

Offline

#4 2009-10-12 19:43:12

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: xml feeds

Hi Kevin, Not hard at all with simplepie


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2009-10-12 19:46:27

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: xml feeds

Thanks colak.
I’ll let you know how I get on.


its a bad hen that wont scratch itself.
photogallery

Offline

  1. Index
  2. » How do I…?
  3. » xml feeds

Board footer

Powered by FluxBB