RSS feeds per category/tag

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
murks
Regular
Posts: 10
Joined: Sun Mar 21, 2010 8:00 pm

RSS feeds per category/tag

Post 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
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: RSS feeds per category/tag

Post 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
=Don=
murks
Regular
Posts: 10
Joined: Sun Mar 21, 2010 8:00 pm

Re: RSS feeds per category/tag

Post 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.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: RSS feeds per category/tag

Post 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.
=Don=
murks
Regular
Posts: 10
Joined: Sun Mar 21, 2010 8:00 pm

Re: RSS feeds per category/tag

Post 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.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: RSS feeds per category/tag

Post by Don Chambers »

You can change the icon.
=Don=
murks
Regular
Posts: 10
Joined: Sun Mar 21, 2010 8:00 pm

Re: RSS feeds per category/tag

Post 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 :)
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: RSS feeds per category/tag

Post by Don Chambers »

Looks good. You might also consider changing your category XML icon to match the freetag version.
=Don=
Post Reply