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?
Modifying the RSS feed
Re: Modifying the RSS feed
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.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.
If you do not have the plugin installed, do install it and try this
YL
Last edited by yellowled on Tue Jan 02, 2007 11:25 am, edited 1 time in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Modifying the RSS feed
Hi!
You can also customize the RSS feeds using the feed*.tpl template files!
HTH,
Garvin
You can also customize the RSS feeds using the feed*.tpl template files!
HTH,
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/
# 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/
Re: Modifying the RSS feed
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.garvinhicking wrote:You can also customize the RSS feeds using the feed*.tpl template files!
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