Using OpenCalais to offer 'More Like This' blocks

One of the ways that search engines determines the relevance of a piece of content to a particular topic is where it links to and which pages link to it. For example, real estate and mortgages are related in Google because a lot of realtors link to mortgage companies and vice versa.

A More Like This block shows your visitors more content that is similar to what is being displayed on the page. This is not only good to increase the amount of time visitors spend on your site, but it's also a great way to tell Google what content is related.

1. Make sure you have OpenCalais properly installed.

2. Download the More Like This module from http://www.drupal.org/ project/morelikethis and install just like a normal Drupal module. Refer to Chapter 1, The Tools You'll Need, for step­by­step module installation instructions.

When activating the module, turn on both the More Like This module and the MLT—Taxonomy module.

Note that the More Like This module is dependent on the Autoload module which you can download from http://www.drupal.org/project/autoload.

3. Go to http://www.yourDrupalsite.com/admin/settings/morelikethis, or go to your admin screen and click the Administer | Site configuration | More Like This Settings link.

4. Note that there are two tabs of settings, General and Taxonomy.

5. The General settings are straightforward. Make sure Pre­populate with Calais Suggestions is selected and leave the Global Term Relevancy Threshold for MLT set at 0.500. (You can experiment with the threshold on your site until its perfect.) Note that the Relevancy Threshold determines how close another piece of content must be to the node in question. If you're not getting any relevant content, try lowering this number.

6. Click on Save Configuration.

7. Under the Taxonomy tab you can enable all of the content types that you wish to display a More Like This block on each node and set up how it will work. Open the Content type you wish to enable with More Like This and edit the settings.

• Select the Enable More Like This Taxonomy checkbox to turn the More Like This functionality on.

• Under Target Content Types, you're selecting the Content types, which the More Like This function will search to find other modules that are relevant. For example, if you have the block turned on for your Story content type, do you want links to relevant blog content to show up in that block? If so, select Blog entry. You can select more than one type.

Number of results is the maximum number of related entries that More Like This will return.

Node Relevancy Threshold for MLT Taxonomy is an override for the same setting on the General tab. Set it to a particular score if you need to override the setting for this particular Content type.

8. Repeat these steps for each Content type you wish to enable. Click on Save this configuration.

9. Go to http://www.yourDrupalsite.com/admin/build/block, or Administer | Site Building | Blocks and move the More Like This Taxonomy Block into a Region that is visible to your users.

10.Click on the Save blocks configuration.

11. While still on the Blocks page, click on the configure option, located next to the More Like This Taxonomy Block and give it a more descriptive name like More Cool Content You Might Like.

12. Now, create a new piece of content that has More Like This enabled.

13. You can manually create associations by entering them in the More Like This Terms field, or you can just leave it blank and OpenCalas will do the matching for you.

14. Click on Save.

15. If there is any content that is related to the node you just saved, you will see the More Like This block.

Your content is now more connected, which is good for your visitors and search engines.