del.icio.us tags redux

As you may have noticed, I've changed the look of the homepage a little bit: I added Technorati tags to all the posts. I also added a link to bookmark each post on del.icio.us.

But the point of all this? I've borrowed from someone else's work and modified it a bit to make the same keywords that it links to technorati also link to del.icio.us.

del.icio.usTags
I've bastardized a Movable Type plugin that will take an entry's Keywords field and turn them into del.icio.us tags. If you want to see it in action, look at the bottom of this entry.

Download del.icio.usTags-0.1 (zip)
(Jan Theofel created a PHP function for Movable Type 3's dynamic publishing, which is now included. Thanks Jan!)




NAME
del.icio.usTags - Plugin for Moveable Type

DESCRIPTION
A variable plugin that outputs an entry's keywords as links to del.icio.us Tags. For
more information on del.icio.us tags, see http://del.icio.us/help/tags

REQUIREMENTS
Moveable Type 2.2 or higher

Tested on Movable Type 2.661 and 3.14

INSTALLATION
Put del.icio.usTags.pl in the plugins directory for your Moveable Type
installation and make sure that the permissions make it readable by the web
server.

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.

USAGE
Add keywords for your post separated by spaces. For example, the
deliciousTags 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, each word would have been tagged with
Movable and Type but not Movable Type.

In your template add

<$MTdeliciousTags$>

where you want to display tags. By default it outputs the links with the
class "deliciousTags" but you can optionally override this with the
"class" attribute:
<$MTdeliciousTags class="someotherclass" $>

For more advanced formatting use Brad Choate's IfEmpty plugin from
http://www.bradchoate.com/weblog/2004/10/20/mtifempty

For example:

<MTIfNotEmpty var=&quot;EntryKeywords&quot;>
<div id=&quot;some_id&quot;>
<h2>Tags</h2>
<p><$MTdeliciousTags$></p>
</div>
<MTIfNotEmpty var=&quot;MTEntryKeywords&quot;>

COPYRIGHT
This program is copyright 2006 George Hotelling (http://george.hotelling.net/) and
Adam Gerstein (http://adam.gerstein.net) and licensed under the GPL General Public License.

0 TrackBacks

Listed below are links to blogs that reference this entry: del.icio.us tags redux.

TrackBack URL for this entry: http://adam.gerstein.net/cgi-bin/MT-4.2-en/mt-tb.cgi/1370

2 Comments

The plugin works terrific, thank you!

Adam, many thanks for this plugin. I have it working pretty much like yours, but the cm.php part of the Technorati link escapes me. What does the PHP script do for you?

Leave a comment

Site Badges

Listed on BlogShares
View Adam Gerstein's profile on LinkedIn
Apple Computer
Powered by Ecto
Powered by MovableType
Feedburner
Project HoneyPot
Adam Gerstein
Add to My Yahoo!
www.blogwise.com
slashdot.org
gotfuturama.com
Blogarama - The Blog Directory
View My Portfolio
Valid XHTML 1.0 Transitional
skitch.com logo
meetup.com

Helping to support this site:

Creative Commons License
This weblog is licensed under a Creative Commons License.

About this Entry

This page contains a single entry by Adam published on March 23, 2006 10:36 AM.

Oh, the horror was the previous entry in this blog.

Number one at last! is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

September 2008

SMTWTFS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        

WebCam

webcam

Twitter Updates

    Recent Comments

    Helping to support this site:

    Drop Cash Campaign

    Powered by Movable Type Pro