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

Padonc's "Bought from Mae Hong Son" T-shirts -- Interesting Souvenir from Mae Hong Son

Padonc's "Bought from Mae Hong Son" T-shirts -- Interesting Souvenir from Mae Hong Son The "I love New York" t-shirt and the series of souvenir was one of my impressive memory from my previous trips to New York City. I got this same kind of impression when I was browsing by the shops by the Jong Kam Walking Street in the city of Mae Hong Son in the second night of the trip. I didn't look at the seller when I caught the sight of these T-shirts. The seller greeted me and, surprisingly, she was P'Kwan, my senior alumni from Chulalongkorn University, who lives in Mae Hong Son and gave me a warm welcome when my family and I went for a dinner at Fern Restaurant in Mae Hong Son town the other night. Note: Pi or P' (its abbreviation) is a Thai word to call an elder sister or brother. Here are the pictures: P'Kwan and Her Shop The T-shirts P'Kwan and the Shop P'Kay, P'Kwan's Husband, at Another Shop Keywords: trips , mae-hong-son , thai

Tip: Converting a CSV File into XML by Excel

I came across a problem to convert a historical data in comma-separated format (CSV) into a modern & more useful XML format. There are many ways to do such conversion. The most obvious one is to do it programmatically by writing a program to read CSV data and exporting it to an XML file by means of the Simple API for XML (SAX) or the Document Object Model (DOM) libraries. But I was too lazy to do it. I knew that Microsoft Excel 2003 supports exporting worksheets into XML data. I tried it out but found that it is not that simple -- we have to define an XML schema and bind each element to each column of the worksheet. So I went on researching. Finally, I found a very useful tool on MSDN: Excel 2003 XML Tools Add-in Version 1.1 ( download ). The Excel Add-in's "XML Tools -> Convert a Range to an XML List" menu command allows us to simply select a range in a worksheet (with or without first row as column names) -- with the advanced options to specify the XML root

It’s been eight years and here comes COVID-19 in early 2020

This blog was last posted in 2008 before Facebook and LinkedIn went mainstream. I have since then socialized and posted a lot on Facebook and LinkedIn. During the global COVID-19 crisis in early 2020 people dramatically change the way they live and work since they day I last posted on this blog. They stay a lot at home during the great lockdown to prevent the spreading of the coronavirus. Here is a summary of my online presence: Facebook: http://fb.com/drthitiv LinkedIn: http://linkedin.com/in/thitiv LINE: http://line.thiti.it Bangkok, THAILAND April 22, 2020