Technorati announced their new tag search engine recently (more info on that), so I’ve written a Movable Type plugin that will take an entry’s Keywords field and turn them into Technorati tags. If you want to see it in action, look at the sidebar on the top right of this entry.
Update 2: If you’re looking for a more general purpose keyword plugin, check out MTKeywordList which loops over the keywords.
Update 2005-05-05: Jan Theofel created a PHP function for Movable Type 3’s dynamic publishing, which is now included. Thanks Jan!
TechnoratiTags – Plugin for Moveable Type
A variable plugin that outputs an entry’s keywords as Technorati Tags. For more information see http://www.technorati.com/help/tags.html
Technorati already adds tags for entry categories but this allows you to add free-form tags for each entry.
Moveable Type 2.2 or higher
Tested on Movable Type 2.661 and 3.14
Put TechnoratiTags.pl in the plugins directory for your Moveable Type installation and make sure that the permissions make it readable by the web server.
Now, make sure that Movable Type is pinging Technorati by following the instructions at http://www.technorati.com/developers/pingconfig.html#head-47a9faa5390ea56a6c23fe7f74b4fc693f915465
You may also want to customize your New Entry form to display the keyword field. Choose New Entry then at the bottom of the form click the link Customize the display of this page. On the form that pops up choose Custom and then check all the fields you want to display, including Keywords. Click the Save button.
To use TechnoratiTags as a plugin for dynamic publishing, put
Add keywords for your post separated by spaces. For example, the TechnoratiTags plugin might get these tags:
technorati tags MovableType Note that
Movable Type was turned into one word:
MovableType. If it had been spelled with the space, the entry would have been tagged with
Type but not
In your template add
where you want to display tags. By default it outputs the links with the class
TechnoratiTags but you can optionally override this with the
For more advanced formatting use Brad Choate’s IfEmpty plugin from http://www.bradchoate.com/weblog/2004/10/20/mtifempty
- Added PHP plugin for dynamic publishing provided by Jan Theofel http://www.etes.de/
- There was a bug when an entry didn’t have keywords that is now fixed.
I can’t tell from Technorati’s site whether the tags need to be on the individual entry archive template or the main index template or what.
This program is copyright 2005 George Hotelling http://george.hotelling.net/ and licensed under the GPL General Public License.