Skip to main content

Tip: Configuring Blojsom for Tagging and a del.icio.us-like Tag Cloud

I am looking for a blog server for my present research in the application of blogs and digital libraries in knowledge management. Blojsom and Pebble, two Java blog servers for hosting under Tomcat 5, seem interesting to me.

Blojsom is a well-established product and is the technology that underlies Apple Mac OS X Server Collaboration Services. It comes with a wide variety of plug-ins (which imply its extensibility) and is also accompanied by a good-looking javadoc.

Pebble, on the other hand, impressed me with its fancy support for del.icio.us-like tagging–see the developer's own blog here for example. But after spending some time looking at its documentation and mailing list on SourceForge, despite the developer's enthusiasm to support the community of users, I found Pebble less friendly to 3rd-party developers than Blojsom and anticipated troubles–with me and the developer–adapting it to my research work.

Therefore...I think I would rather go with Blojsom.

I spent some time googling this afternoon and came across a series of webpages that refer to tags and tag cloud in Blojsom. Kelmon's "Weblog as an Enterprise Project Management Communication Tool" project for his master degree in Information Technology from University of Liverpool, was the most useful to me. In his Plojsom software, he proposed a customized version of Blojsom that would be useful for enterprise project management.

Blojsom's Tagging and Tag Cloud plug-in modules were part of the proposed work.

Following Kelmon and the Blojsom "Available Plugins" Wiki, here is a procedure to enable tagging and tag cloud in Blojsom:

References:

Blojsom Wiki: Technorati Tags Plugin
Blojsom Wiki: Tag Cloud Plugin



Background:

1. The Tag Cloud plug-in generates a cloud of Technorati tags from blog entries.

2. The Technorati Tags plug-in by default generates and embeds the

<a href="http://www.technorati.com/tag/some-tag" rel="tag">

link. However, the blojsom wiki suggested that this template may be overridden from the default

<a href="http://www.technorati.com/tag/{0}" rel="tag">{0}</a>

to an arbitrary one by placing a file "technorati-tag-link.vm" in the subdirectory

"org/blojsom/plugin/technorati/templates/"

of a user's blog templates directory.

3. For information, the template command "#TechnoratiTags($entry)" in the file "asual-entry.vm" is used to generate the set of Technorati tags for a blog entry.



Procedure:

1. Edit the file

{user_name}/templates/asual-column.vm

and add the template below to generate the tag cloud.

#if (!$BLOJSOM_PERMALINK && $BLOJSOM_PLUGIN_TAG_CLOUD_MAP)
<div>
<h5>Tags:</h5>
#foreach($tag in $BLOJSOM_PLUGIN_TAG_CLOUD_MAP.keySet())
<span class="tagcloud$BLOJSOM_PLUGIN_TAG_CLOUD_MAP.get($tag)">
<a href="#BlogURL()?tq=$tag">$tag</a>
</span>
#end
</div>
#end

2. Create a file

{user_name}/templates/org/blojsom/plugin/technorati/templates/
technorati-tag-link.vm

with the content

<a href="http://localhost:8080/blojsom/blog/default/?tq={0}" rel="tag">{0}</a>

There should be no spaces or line breaks in the file.

3. Reload a blog page to verify the changes.



Keywords: , , ,

Update: Aug 30, 2006:

I just learned about the "general (global) settings" concept of Blojsom. We can make most global changes in the "WEB-INF/bootstrap" directory in stead of the {user_name} folder. However, I guess global settings will be overridden by the specific ones in the {user_name} directory.

Comments

Popular posts from this blog

"Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine" Error on Windows 7 (64-bit) + Office 2010 (64-bit) + Visual Studio 2010

If you use (1) Windows 7 (64-bit), and (2) Office 2010 (64-bit), and  (3) Visual Studio 2010 to write an ASP.NET code to connect to Access or Excel database using the Microsoft.ACE.OLEDB.12.0 provider and consistently get the "Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine" error, try installing the 2007 Office System Driver: Data Connectivity Components , which is basically a Microsoft Access Database Engine 2007 Redistributable for Windows (32-bit) from http://www.microsoft.com/download/en/details.aspx?id=23734 Many forums suggested by Google Search suggest installing the Microsoft Access Database Engine 2010 Redistributable for Windows (32-bit, 64-bit) downloadable from http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=13255 but it wouldn't help because Visual Studio 2010 is a 32-bit application; what you need is a 32-bit Data Connectivity component. The 2010 download will not allow you to install i...

Tips: Mac OS X: Full ANSI Color Support in Terminal.app

I'm trying to switch my Java development platform from Windows XP to Mac OS X Tiger. Wondering how to colorize the Terminal screen, I spent some time googling. From the discussions at the end of this page: macosxhints.com - Add full ANSI color support to Terminal.app Here's a summary of how to enable it: With bash shell as default, simply add export TERM=xterm-color [I prefer this for Linux compatibility] or export TERM=dtterm in the ~/.profile (single-user) or /etc/profile (system-wide) Color terminal is enabled. Use ' ls -G ' (the -G enables color output) to test. Add alias ls='ls -G' in the profile file for convenience. Keywords: mac-os-x , unix , terminal , shell , tips

Lenovo IdeaPad S10: Annoying Fan Noise Fix and Heat Conduction Upgrade

Here's a repost of my message on the Lenovo.com board: I would like to thank Slash (on Lenovo.com board) so much for his messages on this thread: http://forums.lenovo.com/lnv/board/message?board.id=IdeaPad_Netbook&message.id=1183#M1183 I decide today (February 28, 2009) to walk into a Lenovo Service Center inside a computer mall in downtown Bangkok because I cannot tolerate the constant grinding noise from my S10 anymore. I bought my S10 in late November 2008 and I started to hear some grinding noise in late December 2008. I have been using the S10 as my primary computer both for work and for home. At work, this noise has embarrassed me many, many times. At home, I left the S10 with Vista in High Performance mode on overnight so that it can complete the maintenance tasks, e.g., HDD Defrag and Indexing, but the fan noise from high CPU temperature woke me up at 4:45 in the morning! I learned from Slash's picture http://i41.tinypic.com/25alq3d.jpg that Lenovo chose to use chea...