Page 1 of 1

Modifying the RSS feed

Posted: Mon Jan 01, 2007 11:26 pm
by tkarp
Is there a way to modify the RSS feed that Serendipity produces?

For example, suppose I just want the feed to consist of the title of each post, along with the first paragraph or so of the text.

Anyone who wanted to see more could click on the link for a particular post.

The reason that I'd like this is because I may be putting a lot of graphics in the posts and right now, the graphics are included in the RSS feed.

Another reason is that I may want to put some formatting in the posts, but this will be stripped out my some RSS readers, running everything together.

So I'd like to have just the title and some text in each feed item.

Is this possible?

Re: Modifying the RSS feed

Posted: Tue Jan 02, 2007 11:05 am
by yellowled
tkarp wrote:For example, suppose I just want the feed to consist of the title of each post, along with the first paragraph or so of the text.

Anyone who wanted to see more could click on the link for a particular post.
I take it you already have the "Syndicate This Blog" plugin installed? If so, "Configure Plugins" -> "Syndicate This Blog" -> "Show full articles with extended body inside RSS feed" -> "[x] No" might already do what you're looking for.

If you do not have the plugin installed, do install it and try this :)

YL

Re: Modifying the RSS feed

Posted: Tue Jan 02, 2007 11:21 am
by garvinhicking
Hi!

You can also customize the RSS feeds using the feed*.tpl template files!

HTH,
Garvin

Re: Modifying the RSS feed

Posted: Tue Jan 02, 2007 11:31 am
by yellowled
garvinhicking wrote:You can also customize the RSS feeds using the feed*.tpl template files!
We should probably (just in case) mention that those files are in the template directory of the template the blog is using or, if the template doesn't have its own feed*.tpl files, are fetched from the default template's directory.

So if you want to edit those files, and your template doesn't supply them, it's probably a good idea to copy those files from the default template's to your template's directory (in ../serendipity/templates/) and edit those files you copied.

Also, note that if the template actually supplies those files, and you're using spartacus or update the template manually, an update might overwrite your edited files. If your templates does not supply those files, this isn't likely to happen unless the template author decides to add them in a later version.

Or in short: Always make sure you have backups :)

YL