logo

Codestore's RSS Feed Now Has Full Content

This one is especially for Tim Tripcony and anybody else who prefers to remain in their feed-reader while catching up on new postings on their favourite sites.

Until today on codestore you had to actually visit the site if you wanted to read my posting. If you were lucky I'd have remembered to add a one-liner summary to try and tempt you in, but often all you had to go on was the title itself.

The trouble with using the title alone is that (at least I find) it's almost impossible to come up with one that summarises it all in a catchy way. I spend way to much time obsessing over the title of a post sometimes - changing words over and over.

Well now, due to popular demand (you can probably tell if you've got this far and you're still in Google Reader or the likes) I've supplied the full body of the blog entry via RSS. Unless you want to post a comment (for which I given you a handy "button" to press at the bottom of each item) there's no actual need to visit the site.

So, why has it taken me so long to make this change? The answer's in the last paragraph -- that you don't need to visit the site. My concern with full-content RSS feeds is that my visitors never actually, err, visit. This means they never get to see the site I put so much time in to designing. Purely selfish, I know and no reason to force people to visit.

The obvious side effect to this is that I lose visitors who don't like taking the gamble that something is worth their time to read based on what the title tells them. Hence my about turn. I might as well get the content I write to as many people as possible hadn't I?!

There was another, more practical, reason not to supply full content. All the internal links in my blogs are relative to the BASE href tag in the page's Head. Likewise for inline images. Links start with "unid/" and images with "rsrc/" both of which are the names of sorted views.

The trouble is that once downloaded to the RSS feed it doesn't know what the BASE href is and so links and inline resource files become broken. Take the link in the last paragraph for example. If you examine it on the site itself you'll see it points to unid/EPSD-52UQZJ?OpenDocument. If you examine the link in the RSS feed you'll see it points directly to http://www.codestore.net/store.nsf/unid/EPSD-52UQZJ?OpenDocument.

So how did I got about this without using nasty hard-coded absolute links in the actual stored content?

All I did was add an @ReplaceSubstring() to the RSS view. Blog posts on this site are just HTML stored in a plain old text field. All I needed to add to the RSS feed's view was this:

@ReplaceSubstring(
        @Implode(Body; @NewLine);
        "=\"rsrc/":"=\"unid/"; 
        "=\"http://www.codestore.net/store.nsf/rsrc/":"\"http://www.codestore.net/store.nsf/unid/"
);

It seems safe to assume that any occurrence of the strings ="rsrc/" or ="unid/" are either a link or an image, respectively. Seems foolproof to me and, more importantly, it works. To prove it here's an image, which just happens to be an image of what the feed now looks like in FeedDemon:

Notice the preview image of the laptop that FeedDemon provides when the item is collapsed. All very cool.

So I hope we're all happy now? If you have any more requests just ask.

Comments

  1. Nice Jake...although with your site, its always been a case of "you post, I listen" so it never bothered me that you didn't include the full post in the RSS...much the same as it is with any quality site.

    KutGW!

    • avatar
    • Jake Howlett
    • Thu 3 Jul 2008 05:20 AM

    KutGW?

  2. Jake, I have all sorts of stuff in my google feed reader (including your site), but I'm still loyal to about 5 sites that I've always visited, yours, Simplebits, Adactio, Clagnut and Juicy Studio. These sites are the basis for my web development skills, even though my own site has crumbled somewhat lately.

    Despite being able to view your posts in Google reader, and that I've moved away from domino to PHP and symfony, I'll still be coming back regularly, you're still a top class read.

    • avatar
    • Kerr
    • Thu 3 Jul 2008 06:04 AM

    Keep up the Good Work?

    Any chance of a comment feed? Yeah I know, given them an inch and they take a foot. Much more than that and you won't have a leg to stand on. ;)

    • avatar
    • Jake Howlett
    • Thu 3 Jul 2008 07:31 AM

    Kerr. Convince me the site needs them and I'll do it. I'm guessing there use case is as follow: You posted a reply to this blog entry. Assuming you want a reply from me/others you'll need to keep coming back and checking for one. With a comments feed you wouldn't need to. Maybe you'll miss this reply whereas you wouldn't with a feed. See I've convinced myself already.

    You do mean one feed for each blog entry don't you?

  3. Jake, with the "Post a Reply To This" button, you've once again leapfrogged most of the sites I read in one respect: as I mentioned yesterday, the primary reason I still click through is when a post evokes a response from me and I want to comment... but in almost all cases I then have to scroll past what I've already read to enter that comment. It's a minor nitpick, of course, but thanks for saving me even more time. And kudos on the ReplaceSubstring trick... when I get a chance I'll add both to my feed.

    By the way, I do have a comments feed on my site, which aggregates all comments into a single feed (as opposed to having to subscribe to a separate response feed for each post). It has only 4 subscribers, and one of those is me; it saves me time determining what comments have been left that I want to respond to, but unless you want a similar approach to monitoring comments, I'm not sure how worthwhile adding a comment feed to CodeStore would be.

  4. Thanks, Jake. And also for the "Post a Reply" button - that's very helpful. It's the little things sometimes, you know?

    For what it's worth, I like comments feeds and I subscribe to several. Without them, I don't follow ongoing discussions at all, and I never come back a second time.

    • avatar
    • Jake Howlett
    • Thu 3 Jul 2008 10:14 AM

    Tim/Rob. Glad you like it. You know me -- always one step ahead. Well, I try to be.

    I considered adding an actual comment *form* where the image is so you don't even need to leave the reader to comment. Maybe I will at some point but I can't decide how good an idea it is. It's too easy then to comment regardless of what others have already said. Mind you, having said that, the image/link I've used takes you straight past previous comments anyway. Duh!

    Rob. Do you like comment feeds for whole sites or individual blog entries?

  5. Love the full content in my feed (Netvibes), and yes, the add a comment button is a real "value add"! Thanks, Jake.

  6. Just a thought: you could have the button target an anchor at the top of the comments section instead of the top of the comment form so that we aren't as tempted to belabor something already mentioned (aside from perhaps seconding an existing suggestion). But you've probably already thought of that...

    • avatar
    • Jake Howlett
    • Thu 3 Jul 2008 01:13 PM

    What I thought of doing Tim was having a text link that says "read comments" alongside the image link to posting. There's then the option of which to do.

  7. Hey Jake,

    Comment feeds for individual blog entries have gained some traction, but only outside of the Domino world. I don't happen to subscribe to any sites that use them, but the idea sounded very useful when I saw it as a mini-meme a while back. When I saw you mention that approach earlier in the comments, I thought - like with the 'post a reply' button - it would be another example of Jake doing something ahead of the rest of the Domino blogging world. Pushes the envelope. I have no idea how successful it would be, but I do like the concept.

  8. Hi Jake,

    I agree with the others that an aggregate feed of all your blog comments would be highly beneficial. The most important thing though is to make sure that the title in the feed for each comment is the title of the blog post so that we can follow which post the comment refers to.

    This is the first time I've commented here, but I've been an avid reader for a few years now. A comment feed would certainly encourage someone like myself to contribute more to discussions on here. At the moment I don't really read comments posted after the time I read the post as I don't know they exist without constantly rechecking (something I have very little time for these days).

    Anyway, keep up the great blog!

  9. Well done. Although I don't know that you need to go whole hog so to speak. I like good summaries or intros in the rss feed, and if good enough, I'll go the rest of the way into the story and read it.

    Title = not enough

    Volker = not enough (usually)

    but a good 1 paragraph is usually perfect.

    Keep up the great work!

    • avatar
    • Jake Howlett
    • Fri 4 Jul 2008 02:41 AM

    Hi Rebecca. I can't believe how many people are coming out of the woodwork these last few days. I suppose I might as well add RSS for all comments and a feed for each post (might as well while I'm at it).

    Lance. It's funny you mention Volker's as I was going to myself. As much as I love his site I have to say his RSS is not what I'd like it to be. For starters, as you suggest doing, he uses a brief snippet of the actual content. If you read this and your interest is piqued you have to click through to the site and then start skim-reading the post just to find where you left off when you were in the reader. Not a massive hassle but as everybody has being pointing out time is of the essence when reading feeds.

    The other problem I have with the way Volker's feed works is that it (seems to) strip all HTML tags. The problem here is the loss of context and meaning. There have been quite a few times I've read his RSS snippets and not had a clue what he was saying as the writing didn't flow or seem to make sense. When clicking through you sometimes see why -- for example if a blockquote tag was removed then the piece of text being quoted becomes inline text and appears to be Volker's own words. All very confusing.

    Isn't RSS a big topic....

    • avatar
    • Kerr
    • Fri 4 Jul 2008 05:36 AM

    Hi Jake, Looks like I don't need to do the sales job. But this highlights why I like comment feeds. I didn't bother checking back until now and find there are lots of comments. I'd have replied sooner if it noticed a discussion going on. ;)

    I prefer aggregated comments rather than having to manage subscribing to individual ones. Rebecca is also on the money with the title of the comments being the same as the OP. I've always hated the old notes discussion style where people put the first line of what the say as the subject. Bleh!

    • avatar
    • Jake Howlett
    • Fri 4 Jul 2008 04:58 PM

    This is just to test the new comments feed! Which, if you're interested, you can find here:

    {Link}

  10. Thank you. I much prefer having everything in my reader. And, I do enjoy your site.

  11. Jake,

    The new feeds are great. I use Google Feed Reader and it works pretty well there. Seems Feed Demon still holds the title for most user friendly features from your snapshots. Nicely done!

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment:


About This Page

Written by Jake Howlett on Thu 3 Jul 2008

Share This Page

# ( ) '

Comments

The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

More Content