Nick
Nick

Reputation: 385

How to dynamically create rss feed?

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"

How can I build a feed with changing URL parameters or build individual feeds?

Upvotes: 0

Views: 1875

Answers (1)

Quentin
Quentin

Reputation: 943100

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.

Upvotes: 1

Related Questions