Extendr for Flickr and Views

By Jeff Miccolis on Feb 05 2009

For the past week or so, I’ve been sneaking in some work on a proof-of-concept Drupal module – Extendr. The idea behind the module was to see how difficult it would be to use the Views module to query something other than a SQL database. In short it was easy…dangerously easy.

A Google Summer of Code student had begun exploring the concept of using the Views module to show results from Apache Solr and wrote a patch to Views that made this possible. What the patch does is allow developers to direct Views to use different code to build a query, so that instead of putting together SQL to query a database, like MySQL of PostgreSQL, you could query a web-service like Flickr. This is exactly what Extendr does, take a look:

This kind of integration is very basic, though immediately useful, and it is just the start. It’s easy to imagine how this sort of functionality could be use to integrate with other social web services, like Twitter or Upcoming, and perhaps with a bit more work it could be possible to write a module which adds SPARQL functionality to views. In addition to these sorts of remote integration, I imagine that allowing developers to provide Views with an alternative query type would make it possible to use Views to generate highly optimized, or specialized, queries.

I’ve made the code for the Extendr module available, but don’t expect to see it as a release on Drupal.org. It’s a proof-of-concept that relies on a patch to Views. Hopefully once that patch gets committed and the functionality makes it’s way to a stable release, this kind of functionality will make it into existing modules.

0 tweets link to this blog post. Start a conversation with @developmentseed on Twitter.

Search

No results found.
About
Projects
Team
Blog