Skip to content

Find-tags-as-you-type in Serendipity

I've accumulated quite a number of tags over time, and it's not always easy to determine if I've used some peculiar tag before. Neither is it undemanding to pick the correct tag out of the list by using the mouse pointer. So, after reading about the Simple Tagging plugin for Wordpress, I decided to add some find-as-you-type functionality to our beloved freetag plugin. It's not yet as sophisticated (feature-laden) as the WP plugin, but it does its job quite well using the WICK library.

Instructions: Download the WICK lib, extract it, and copy wick.js and wick.css to your freetag plugin dir. Then you need to patch two files, serendipity_admin.php in your blog's root dir, and serendipity_event_freetag.php in your freetag plugin dir.

Add something along the lines of

<link rel="stylesheet" type="text/css" href="<?php echo $serendipity['baseURL'] . 'plugins/serendipity_event_freetag/wick.css'; ?>" />

to the HTML head in serendipity_admin.php.

Finally, apply this patch to (the current version of) serendipity_event_freetag.php. Now you should be done. Please report if anything doesn't work and/or if it works perfectly for you.