WikiHome » ProjectBlog » Rewritten tagging library: faster, multiple tag clouds, global tag clouds, extensible, and more
Rewritten tagging library: faster, multiple tag clouds, global tag clouds, extensible, and more
Tags: [new, tag, tagging, library]
Everything has changed under the hood, even if it isn't obvious. I took our three generations of ad-hoc'ing code into place and refactored it into a stable object-oriented structure. It's intended to be easy to modify and extend the underlying code.
Here are the biggest changes:
- Faster: this setup works as much as 10x faster than the last version did.
- Designed around a Tag object. Including TagLib initializes that object, and supplies all the client-side scripts you'll need.
- All the heavy lifting gets done here -- making tag clouds is very quick.
- Clouds are objects. To create a cloud, you call new Tag.Cloud() and pass it a list of tags -- any list of tags you want.
- Generate a tag edit box by calling Tag.EditBox()
- Semi-standard passing of arguments via a property map.
- Easier to style. You can set the class for clouds, edit boxes, and their parts.
- More flexible -- you can pass in different Pivot pages and nodes to edit tags for.
- Degrades better. Instead of failing when javascript isn't available, these tagging widgets send you to a Form or Pivot page.
That's about all I can think of right now.
The code is pretty well commented, check it out in:
Back to ProjectBlog
ScottMcmullan said, 03/28/2006:
Awesome Phil -- nice work! This is really a huge step forward for Jot tagging.
I've done a first cut of the packaging and documenting here: TagLibV2. Also included a tag search page for good measure.
Download the zip: TagLibV2.zip (Note: this is not a package. To install see: http://developer.jot.com/ZipImportExportTutorial