Add separate RSS feed for full entry view

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
MarkMushakian
Regular
Posts: 16
Joined: Sun Apr 06, 2008 6:19 am
Location: San Clemente, CA, USA
Contact:

Add separate RSS feed for full entry view

Post by MarkMushakian »

Hi folks..

I use the Syndication plugin on my site, and it works great. I export my entries to Facebook, to help garner more views, and to save space (and for other reasons like spoiler reviews) I often make use of the extended entry option. I selected the option in the Syndication plugin to NOT display the full extended entry in the RSS feed, since I don't want the whole thing being sent to Facebook. However, my problem/question is: Can I create a secondary feed that I could make available on my site for those who DO wish to have the full entry sent to them through RSS?
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Add separate RSS feed for full entry view

Post by Don Chambers »

I played with something like that awhile ago.

RSS feeds each have smarty templates, such as feed_1.0.tpl (rss1),, feed_2.0.tpl (rss2), feed_atom1.0.tpl (atom 1), etc.

If your template does not have these, you can copy them from /templates/default/ to your template folder.

Someone elsen may have a better idea, but here is mine.

You could use one of these feed formats to either include, or eliminate, the extended body. The plugin option would have it enabled for all, so the template file is what would control whether the extended body is in the feed or not.

In these smarty template files, the entry body is emitted as {$entry.feed_body|@escape}, and the extended body is {$entry.feed_ext|@escape}. I believe this second value for extended body is simply blank if the plugin has been set to NOT emit extended body, so this is why I think you would set the plugin to always emit extended body, but edit the smarty template(s) so that extended body is only present in whatever feed you want it in.

I think RSS2 is the most common format, and the one most likely to be automatically detected by readers, such as google/feedburner. As such, I would exclude extended body from this, and all other feeds, then select a less common format, such as rss1 or atom to include extended body. You would then need to instruct your visitors on which feeds contain the full entry.

Hope that made sense! 8)
=Don=
MarkMushakian
Regular
Posts: 16
Joined: Sun Apr 06, 2008 6:19 am
Location: San Clemente, CA, USA
Contact:

Re: Add separate RSS feed for full entry view

Post by MarkMushakian »

That's exactly what I was hoping for, so thanks, Don :). Though I'm still open to the possibility of having a completely separate feed option without altering what's there (even through an offsite service?), this should work just smashingly.
Post Reply