Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-01-15 16:06:26
- sweixel
- New Member
- Registered: 2010-01-15
- Posts: 4
How can I get a feed (rss or atom) for a specific author?
I’ve been searching for a while and I’ve found ways to get by section or category, etc. but not by author. I have a blog where my wife and I both post and I would like to have separate feeds. Any help that anyone could provide would be appreciated, thanks.
Offline
Re: How can I get a feed (rss or atom) for a specific author?
- Getting started: Building custom feed with <txp:tags />
- Possibilities: Plugins and expanding the idea
- Pointer: Article_custom’s author attribute
Offline
Re: How can I get a feed (rss or atom) for a specific author?
I used rah_external_output and the following code
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
<generator>http://textpattern.com/</generator>
<title><txp:site_name /></title>
<link><txp:link_to_home /></link>
<description><txp:site_slogan/></description>
<pubDate><txp:php>echo strftime( "%a, %d %b %G %T %Z" );</txp:php></pubDate>
<atom:link href="<txp:site_url/>?rah_external_output=author_feed" rel="self" type="application/rss+xml" />
<txp:article_custom allowoverride="0" limit="10" pgonly="0" author="AUTHORNAME" section="articles">
<item>
<title><txp:title /></title>
<description>
<![CDATA[
<txp:body />
]]>
</description>
<link><txp:permlink /></link>
<pubDate><txp:posted format="%a, %d %b %G %T %Z" /></pubDate>
<dc:creator><txp:author /></dc:creator>
<guid><txp:permlink /></guid>
</item>
</txp:article_custom>
</channel>
</rss>
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#4 2010-01-16 03:16:04
- sweixel
- New Member
- Registered: 2010-01-15
- Posts: 4
Re: How can I get a feed (rss or atom) for a specific author?
Thanks for the plugin and the code… I must be missing something because I can’t get any articles to show up. Of course I updated “AUTHORNAME”
Offline
Re: How can I get a feed (rss or atom) for a specific author?
You may need to change section="articles"
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#6 2010-01-16 13:53:19
- sweixel
- New Member
- Registered: 2010-01-15
- Posts: 4
Re: How can I get a feed (rss or atom) for a specific author?
I had changed section to “article” because I figured that had to match as well. Are there custom fields that have to be set?
If it helps, my feed is at http://www.photoscene.com/kimandsteve/?rah_external_output=Steve
Offline
#7 2010-01-17 06:55:42
- sweixel
- New Member
- Registered: 2010-01-15
- Posts: 4
Re: How can I get a feed (rss or atom) for a specific author?
I figured it out… it’s not my “real name” that the author is expecting, it’s my login name. doh. It works now.
Thanks everyone.
Offline