countculture

Open data and all that

Experimental OpenlyLocal widget: council info on any website

with 2 comments

I’m at the excellent TalkAboutLocal unconference and decided yesterday afternoon if I could come up with something that’s been long-requested: a widget that allows you to put council info from OpenlyLocal on your website, specifically forthcoming council meetings for any of those 100+ councils we’re holding info for.

Well, I did it. It’s experimental. But it works. And it should take no more than 2 minutes to do. Here’s what it looks like (thanks to the excellent Philip John at The Lichfield Blog for trying it out):

OpenlyLocal widget for forthcoming council meetings

And this is what you need to do to install it. Paste the following code in to a sidebar, box, or anywhere you like on your website*.

<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript"
src="http://openlylocal.com/tools/widget.js?council_id=167"></script>

Replace the number on the second line after ‘council_id=’ with the OpenlyLocal id for the council (which is the number at the end of the URL for the council, e.g the above one is for Birmingham City Council – we’ll be making this process easier shortly). We’ll also be adding more features, and best of all you won’t have to do anything; the widget will update automatically. And that’s it. A doddle.

* The only requirement is the sidebar or part of the website should allow javascript to run — which means self-hosted WordPress installations are fine, though WordPress.com ones aren’t

About these ads

Written by countculture

April 17, 2010 at 1:22 pm

Posted in Uncategorized

2 Responses

Subscribe to comments with RSS.

  1. Superb! But please add a noscript option.

    I’ll be happy to advise on microformat mark-up, if wanted.

    Andy Mabbett

    April 17, 2010 at 2:00 pm

  2. A wee problem with this – there is no OpenlyLocal ID for the City of Edinburgh Council……..! Any chance of getting one?

    PIty I did not find out about #TAL10 in time to go…..

    The Edinburgh Reporter

    April 18, 2010 at 7:19 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 80 other followers

%d bloggers like this: