Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-02-06 12:23:27

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Trying to customize rss feeds

- I’m trying to customomize RSS feeds, in particular I need to remove the description from the feed.
For this reason I’m at present trying to use ‘atb_customize_feeds’, but I cannot finfd enough explaination on how to use it.

- I’ve also tried successfully to use the template ‘my-rss’ before, but I don’t know how to use it with default RSS textpattern tag ‘ <txp:feed link />. I’ve found this forum post, explaining I would need to modify htaccess file:

http://forum.textpattern.com/viewtopic.php?pid=229314#p229314

But, I ask: Is it a good solution?
Can this work with the default textpattern tag?

I’ve found also this: http://txptips.com/create-a-custom-author-feed

but I can’t understand the link between ‘rah_external_output’ and the feed , that is I can’t understand how the
‘Feed items’ is called in the final code.

Last edited by Bongo-man (2011-02-06 13:23:39)

Offline

#2 2011-02-06 15:43:00

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: Trying to customize rss feeds

Hi,

You can create an entry in extensions > external output called myfeed.rss (or whatever obviously) set the mime type to application/rss+xml

Link this in the head of your HTML to embed it:

<link rel="alternate" type="application/rss+xml" title="this is my feed" href="http://domain.com/?rah_external_output=myfeed.rss" /> 

and/or you can just link to it on the page too if you want using an anchor. I usually get the feed into feedburner and link to that instead.

Hope that helps?

Jan


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#3 2011-02-06 17:59:32

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: Trying to customize rss feeds

To customize article feeds I use rah_custom_feed

Last edited by CeBe (2011-02-06 18:01:06)

Offline

#4 2011-02-06 21:11:05

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: Trying to customize rss feeds

I haven’t succed in using this option.
I have goot more fortune with this http://isaacbowen.com/blog/custom-rss-feeds-in-textpattern/

I have customized it very well, because it utilizes a specific section for each feed, that can be adapted to the matching directory, like this: www.mywebsite.com/directory1 with RSSfeed: www.mywebsite.com/directory1-xml, www.mywebsite.com/directory2 with RSSfeed: www.mywebsite.com/directory2-xml , etc

directory1, directory2 are all sections

So that I can call the RSS-feed of each directory (section) from the same template by means of:
<a href=“http://www.mywebsite.com/<txp:section />-xml”>RSS.gif</a>

Offline

#5 2011-02-07 07:05:41

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: Trying to customize rss feeds

The solution above works profiting the expression aand the form reported in this page: http://isaacbowen.com/blog/custom-rss-feeds-in-textpattern/

But I don’t know why not all the article date are reported in the RSS feed, in some RSS-feeds the date is reported in almost every feed article, in other RSS-feeds the date lacks almost in all of the articles listed in the feed.
I don’t know why. Any solution?

Offline

Board footer

Powered by FluxBB