Proud sponsors of WordCamp, Birmingham, July 2008

Puffbox principal consultant Simon Dickson's rants and reflections on the unholy trinity of online news, e-government and the new politics.

Embed RSS feeds via Google

9 June 2008 | Comments: 3 ,

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.

Got something to say? Say it.

Tag cloud

Puffbox.com archives

Ancient history

This is the new home for Simon's blog, previously hosted by WordPress.com. If you're looking for something written during 2006 or 2007, the old blog's archives are still available.

Alan's comments feed

By popular demand: the comments feed