tags:

views:

17

answers:

1

Hi all,

I just created my first rss feed. it worked fine. got it validated. It is basic feed of my recent blog posts. I would like to know if i would dynamically url parameters..

feed would look like this .. http://www.website.com/feed/?category=php.rss...

should show the recent blog posts of category "php". if category changes to "jquery" should show recent posts in "jquery"

So is there a way I can build on feed with changing url parameters or build individual feeds.

I appreciate any help.

Thanks.

+1  A: 

Of course.

Just get the category name of out of the query string (using whatever standard library you use for that in whatever language you are using), add that as a conditional to whatever method you use to get the data (hopefully some sort of ORM), then drop the results into whatever library you generate the RSS from, just as if it were all the entries.

David Dorward
@David +1; @Nick To put it simple, just get the category from the URL parameter (in PHP you can accomplish this by using `$categ = $_GET['category']`; `$categ` will be `php.rss` in your case), and than get the data based on this value, i.e. call `GetEntriesByCategory($categ)`. Also, you don't need to put a `.rss` in the category; `http://www.website.com/feed/?category=php` is good enough
Giu