Automatically find related content on other sites using Service Attachments

I just contributed a new Drupal module called Service Attachments. It basically finds related content for nodes on others sites like YouTube, Flickr, Twitter, ... It's actually implemented as a small "framework" so you can plugin in your own services.

When do you need this? Well, when you want to enrich your nodes with content from other sites and you don't want to go through the process of searching all those sites.

How does it work? You learn the module how it has to do a query on another site (via a webservice, ...). You also tell it what queries should give good results, these are called candidates. This is configured per content type. For example in case of a concert node, good candidates are "ARTIST + VENUE + CITY", "ARTIST", "VENUE + CITY", "VENUE". The module will then go through all this candidates and as soon as it finds a match, it'll take that and stop searching. So you start with a pretty exact query and go broader and broader.

How well does it work? It depends on how well you configure it. But don't expect 100% matches. But with some fine tuning you should get 80% relevant content without any problem.

An extract from a presentation I did on FOSDEM 2009 will hopefully explain this better.

Written on August 16, 2009 at 14:01, tagged as Drupal, modules, Service Attachments

Comments

bump

1. service attachment package should be another module. Had to move it to get working
2. The service listings and fields do not look like the slide show.
3. Please detail one example with your current release

thank you

Tarball is ready ... http://drupal.org/project/service_attachments Enjoy!

We use drush here to manage all modules and do not use CVS. Thanks for checking on it.

Code is in CVS already though.

I've applied for a build but looks like something has gone wrong. I'll have another look at it.

Do not see any release on the project page. Did you intend to put up a beta or 0.x or anything?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

About

drupalcoder.com is a blog on all things Drupal in specific and LAMP on OS X in general. It is maintained by Davy Van Den Bremt, a Belgian (Drupal) web developer and designer living in Ghent. The goal of this blog is to log all interesting things that have crossed the writer's path while developing Drupal sites. You can read all about Davy's professional activities on his LinkedIn profile. If you want to get in touch, use the contact form.