Simon Dickson, principal consultant at Puffbox, writes stuff about e-government, online news and politics. Some important people read it.

Embed RSS feeds via Google

9 June 2008 ,

RSS is my answer to everything. So simple, so straightforward, so flexible. Yet, as I've mentioned here before, I'm amazed how few government web sites - especially new ones - offer feeds. The number using RSS feeds to pull content in, of course, is even smaller. A few months back, I asked readers how many had websites which could import content via RSS. The results were depressingly predictable (or should that be predictably depressing?).

If it's something you'd like to add to your site, Google might well have a solution. They've made available a 'feed API', based on simple Javascript, to pull headlines together from any RSS feeds (yes, plural) you specify, and turn them into HTML for inclusion in your pages. You can have a conventional one-line ticker, or a vertical presentation: in an aggregated list, or divided by source. Adding a live view of the latest headlines from any given (RSS-enabled) site just became as easy as copy-and-paste... assuming your CMS is OK about you entering Javascript.

Of course Google's far from the first to do this... but I've never seen a similar service with the same big-name, long-term backing. The code looks relatively simple to hack if you need to, and you should be able to dress it up in the host site's font/colours using basic CSS. Plus, the Google 'widgets' are really neat, with hover effects and animations built in. It's far from 'industrial strength', but it might well be enough for smaller projects.

  • Remebering, of course, that many folk suppress Javascript by default... (Firefox No Script fr'instance).

    Having said that, it's excellent news.

  • Do you mean 'many nerds suppress Javascript by default'?

  • I can't imagine that many people have got the faintest idea what you're talking about.

Stop wasting your time RSS feed

Let us tell you when there's new stuff to read at puffbox.com, by subscribing to the RSS feed.

Go on, show your face

If you want your photo to appear beside any comments you leave here, hop over to Gravatar and upload a picture of yourself. Otherwise, we'll just assume the machine-generated monster is a fair likeness.

Tag cloud

Puffbox.com archives

Search

Alan's comments feed

By popular demand: the comments feed

Ancient history

For posts during 2006 or 2007, Simon's old blog's archives are still available.