Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2010-01-15 16:40:11

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: How can I get a feed (rss or atom) for a specific author?

Offline

#3 2010-01-15 17:29:14

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

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>

My Plugins

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

#5 2010-01-16 09:04:53

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: How can I get a feed (rss or atom) for a specific author?

You may need to change section="articles"


My Plugins

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

Board footer

Powered by FluxBB