Split RSS generation out of index.php

Discussion corner for Developers of Serendipity.
Post Reply
Joost
Regular
Posts: 7
Joined: Sat Jan 07, 2006 2:37 pm

Split RSS generation out of index.php

Post by Joost »

Not sure whether this is the right forum to post this, but maybe you can consider splitting the RSS generation out of the index.php

I understand the reason why you would want everything in index.php, but it does limit what you can do with serendipity too much I think because it never allows you to touch index.php with any HTML. I know I should use the templating system, but to integrate serendipity with a site fast and completely using the index.php rules. (see what I did with it at http://www.tiouw.com/serendipity).

Maybe think about it and regulate RSS generation to a different file. The main problem now is that it uses the index.php path to generate RSS. If we could somehow divert this to a clone of the index.php, it would be fine.

I did it for the syndication plugin by hardcoding the path. But I was unable to find where the path is generated for the categories RSS feeds. If anyone can point me where I can hardcode the paths for the categories RSS feeds, please let me know.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Split RSS generation out of index.php

Post by garvinhicking »

RSS generation is already outsourced to rss.php :-)

Index.php just is the "pretty url" rewrite scheme.

However, you just needto put your HTML code at the rightplace in index.php, this is defnitely possible without affecting RSS output.

And YES, you SHOULD use the templating. It's not slower then HTML code in index.php, because the smarty framework is used nevertheless.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply