RSS and image thumbnails

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Posts: 20
Joined: Sun Feb 18, 2007 9:59 pm

RSS and image thumbnails

Post by dom97 » Sat Sep 15, 2007 3:38 pm

I would like to have my image thumbnails not to be clickable or viewable to a larger image in the RSS feeds. Anybody have the code to change this? Just be able to view thumbnails in RSS and not the full image.
Would like the RSS user to go directly to the Entry on the blog when clicking on the title of the entry in the RSS.


User avatar
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Re: RSS and image thumbnails

Post by garvinhicking » Sun Sep 16, 2007 1:58 pm


That's not so easy. You would need to write a plugin or smarty function call that strips image links (by it's HTML) for the RSS feeds.

What you can do is to strip all RSS feed body text, so that the RSS readers will only get your headlines and need to go to the blog.

For that, edit your feed_*.tpl template files (copy them over from templates/default/ to your custom template directory, if yours doesn't have them). Then edit each of these files and remove those parts:

(feed_0.91.tpl, feed_1.0.tpl)

Code: Select all

        {$entry.feed_body|@escape} {$entry.feed_ext|@escape}


Code: Select all

    {$entry.feed_body|@escape} {$entry.feed_ext|@escape}

(feed_atom0.3.tpl, feed_atom1.0.tpl)

Code: Select all

            <div xmlns="">
                {$entry.feed_body} {$entry.feed_ext}

# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy:
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby:

Post Reply