Page 1 of 1

RSS feeds per category/tag

Posted: Thu May 20, 2010 10:24 pm
by murks
Hi.
I want to a planet to receive only the feeds of the relevant posts, but I'm kind of lost.

I found this page: http://www.s9y.org/49.html#A4
but it doesn't quite help me, since there's no line in my rss.php that looks similar to the examples given. I don't know any php at all, but the file looks to me like it shouldn't ever be touched by a user.
The page also doesn't explain the syntax in case of tags, which I do use exclusively, but if there's a need to use categories I can live with it.

TIA,
Philipp

Re: RSS feeds per category/tag

Posted: Fri May 21, 2010 1:53 am
by Don Chambers
Are you saying you only want the rss feed for a specific category or tag?

Lets assume you had a category named "Awesome". Lets also assume that this was your 5th category, and you did not modify the default permalink structure of serendipity.

To see a list of all entries for that category, the address for that would be something like http://yoursite.com/serendipity/5-Awesome

To see the feed for that particular category, would be http://yoursite.com/serendipity/5-Awesome.rss

Now lets assume you are using keyword tagging, with a fairly default plugin configuration and one of your keyword tags was named "news". To see the rss feed for that tag would be something like http://yoursite.com/rss.php?serendipity[tag]=news

Re: RSS feeds per category/tag

Posted: Fri May 21, 2010 2:33 am
by murks
Thanks a lot Don, I didn't think it would be so easy. The mentioned help page led me to believe that I need to edit the rss.php file, which obviously is not the case.

This seems to work like a charm: http://murks.lima-city.de/serendipity/r ... ty[tag]=la

Thanks again for the quick help.

Re: RSS feeds per category/tag

Posted: Fri May 21, 2010 2:49 am
by Don Chambers
No problem - happy to help. You might also consider switching on the RSS icon for each of your tags. It is an option in the freetag sidebar plugin.

Re: RSS feeds per category/tag

Posted: Fri May 21, 2010 3:28 am
by murks
Thanks, not a bad idea, but the buttons are a bit too prominent for my taste, not sure I'll leave it that way. But it's nice to have some options.

Re: RSS feeds per category/tag

Posted: Fri May 21, 2010 4:02 am
by Don Chambers
You can change the icon.

Re: RSS feeds per category/tag

Posted: Fri May 21, 2010 1:24 pm
by murks
Done so (after hunting for a while for the correct place to put it..).
It's pretty nice now and it should be more obvious the the Tag isn't just yet another syndication link..

Thanks :)

Re: RSS feeds per category/tag

Posted: Fri May 21, 2010 3:32 pm
by Don Chambers
Looks good. You might also consider changing your category XML icon to match the freetag version.