RSS

How can I create a link to my category's RSS feed in my item?

Scenario:
"I've read the FAQ on how to create separate RSS feeds for each category and I would like a way to make this work in the index template so it will automatically add a link to the category feed in the category list."

Solution:
Edit your index template to have the following code where you want the feed link to appear:

<a href="http://www.example.com/xml-rss2.php?blogid=<%blogid%>&catid=<%catid%>">RSS Feed</a>

where "www.example.com" is your domain.

If you would like the link to appear in your categorylist, scroll down to the bottom of the template where the categorylist is defined. Then in your Category List Item section, put the following code:

<li><a href="<%catlink%>"><%catname%></a> (<a href="http://www.example.com/xml-rss2.php?blogid=<%blogid%>&catid=<%catid%>">RSS Feed</a>)</li>

Original forum thread:
http://forum.nucleuscms.org/viewtopic.php?t=11670

section: RSS | submitted by Leng on 2006.May.06 | 2906 views

item rate
This answer was not rated yet.

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10