Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-06-30 12:01:42
- alexandra
- Member

- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
RSS per author
I wonder if it is possible to generate a rss feed per author in TXP? I know it is not possible with txp right now .. though might it somehow possible in general? Anybody an idea?
Offline
Re: RSS per author
If we reason there must first be a place for the author-related articles to appear at (section/page), which is where the RSS feed would need to pull from (point to) anyway, then it seems to me it’s just a matter of the following:
- Create a new section/page; e.g., authors/Authors.
- Create a new article category for each author (e.g., Alexandra, Matthieu, Niel…). Note if core category limits (two) are a problem, look into Rob’s rss_unlimited_categories
- Assign articles to the author’s category, as appropriate.
- Use Andrew’s ajw_clean_feed plugins for the RSS, which will give the persons name in the feed links.
Otherwise, I’m sure a small plugin for this could be written that used the <code><txp:author /></code> tag somehow, but you would still need a special section for the output, so it’s probably just as easy to go with the steps above.
Offline
Re: RSS per author
If anyone is up to helping me trouble shoot this, Alex and I have implemented this solution over at txpmag.com, and have Andrew’s plugin installed for good measure.
Yet, I am not able to get a specific feed per section.
I have checked and double checked all the settings I can think of.
Anybody have any ideas?
Thx :) Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: RSS per author
I’m not implementing the feedburner approach that Nathan talks about; all the extra .htaccess stuff is not (to me) worth the few apparent pluses, so I can’t help you there.
I use the method I described above. When you have Andrew’s plugin in place you’ll have feedlinks for each author in the head of each page you want to make the feeds available (makes no difference what section). I put all my feeds in a form and insert them in the head of the template that way.
Here’s an example feed link that works with Andrew’s plugin:
<code><link rel=“alternate” type=“application/rss xml” href=“http://domain.tld/category/categoryName/rss/” title=“feed title” /></code>
Note: Your feed link paths will not indicate a section (even though they will be tied to a particular section via specific associations of the categories you decide to use), Andrews clean feed plugin works by indicating the category only. This is actually nice because then you can place the feed an every page (template) of your site without confusing users with a particular indicated section in the path, and it still works with the attributed section in question (i.e., if an article was actually followed via the syndicated links, a user would end up in the section the article is actually published in). Also, the portion of the feed path that reads <code>/category/</code> is required for Andrew’s plugin, it just works that way. Category name is obviously the name of your categories, and this will logically be the names of the authors. None of this, by the way, requires any modifications to the .htaccess file.
Offline
Re: RSS per author
Destry,
I chose the .htaccess changes for the ability to track RSS rather than the cleanliness of feeds. I chose andrews plugin for the cleanliness of feeds.
I found out a moment ago, that the plugin and the .htaccess rules are working just fine. The only problem was that the articles posted to my section at Txpmag are not being read by the reader unless they are specifically posted to that section.
Its not possible to include the category “matthew_smith” as the categories are set aside for the purposes of navigating to articles of similar type and excluding matthew smith is not possible at the moment.
Therefore, Andrew is taking a look at the plugin and helping me figure out a solution.
Thanks for your thoughts bro. We’ll get something worked out yet.
Hows life anyhow :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: RSS per author
Andrew’s the man, I’m just the theorist.
Life? I forget who I am, but I have a fine, new son who keeps reminding me.
Offline
#7 2006-07-04 16:57:59
- alexandra
- Member

- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: RSS per author
but I have a fine, new son …
Welcome Wion junior :) all the best for your first months!
[Author RSS: i guess we need some one to code it. if someone reads this and could do the job, let us know. thanks.]
Offline
Re: RSS per author
Tentative hack solution for Atom feeds! (tested on TxP 4.0.3)
It seems that all we need to achieve feeds-by-author are three lines of additional code in /textpattern/publish/atom.php. After applying the following three changes, you can then access the feed to author with username, “foo”, by adding the author=foo query to the end of your Atom feed URL.
I don’t have any multi-author TxP sites that I can test this on so I’d appreciate it if you can verify that this works.
- At line 29, replace
extract(doSlash(gpsa(array('category','section','limit'))));
with
extract(doSlash(gpsa(array('category','section','limit','author'))));
- Then at line 62, insert
$afilter = ($author) ? "and AuthorID='".$author."'" : '';
- Finally, at line 74, insert
$query[] = $afilter;
Last edited by dreamstormer (2006-07-06 06:33:25)
“The neighboring marshmallow factory fared no better, having been unable to absorb the incredible pressure wave.”
Offline
Pages: 1