Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-05-24 20:16:36
- jim
- Member
- Registered: 2008-11-06
- Posts: 29
Auto-posting of articles or links from an RSS feed
Hi folks,
I know there are plugins for parsing and displaying the contents of RSS feeds on your TXP site (e.g. SimplePie), but is there a plugin that will grab the contents of an RSS feed and automatically create TXP articles or links from each post found in the feed? It seemed to me that the plugins I found would grab the feed on the fly and render it separately from the blog flow.
Thanks!
Jim
Offline
Re: Auto-posting of articles or links from an RSS feed
I think you can do that with smd_xml. See Example 6 in the docs:
EXAMPLE 6: INSERTING XML DATA INTO TXP
This example takes a delicious feed, reformats the various entries and inserts them into the textpattern table in a dedicated section. Note that the date format is altered and the feed’s title is converted to a sanitized TXP URL suitable for the url_title field.
<txp:smd_xml data="http://feeds.delicious.com/v2/rss/roadrunner"
record="item" fields="title|utitle, link, pubDate, description, category"
format="pubDate|date|%Y-%m-%d %H:%I:%S,
description|escape, title|escape, utitle|sanitize|url_title">
<txp:smd_query query="INSERT INTO textpattern
SET Posted='{pubDate}', LastMod=NOW()
url_title='{utitle}',
Title='{title}', custom_3='{link}',
Body='{description}', Body_html='{description}',
Section='links', Category1='delicious',
keywords='{category}'" />
</txp:smd_xml>
TXP Builders – finely-crafted code, design and txp
Offline
#3 2011-05-25 00:03:05
- jim
- Member
- Registered: 2008-11-06
- Posts: 29
Re: Auto-posting of articles or links from an RSS feed
Very cool, thank you Jakob!
Offline
Re: Auto-posting of articles or links from an RSS feed
- Search for ‘reblogging’
- asv_tumblelog inserts RSS as article
- Thanks Jakob for the smd_xml tip
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline