Availability
Available as of blojsom 2.26.
Description
Creates a "cloud" of the tags used on your blog. This "cloud" can be displayed in your template to allow visitors to search among entries based on a given tag.
Installation and Setup
Plugin Setup and Configuration
In your global /WEB-INF/plugin.properties file, add the following line:
tag-cloud=org.blojsom.plugin.technorati.TagCloudPlugin
You may then add "tag-cloud" to one of the flavor-based plugin chains. It must occur after the meta plugin. These plugin chains can be found in the individual blog's plugin.properties file. You should also place this plugin at the beginning of the chain. For example:
html.blojsom-plugin-chain=meta, tag-cloud, ...
Usage and URL Parameters
Sample Style for Tag Cloud
Sample Template Code to Display Tag Cloud
#if (!$BLOJSOM_PERMALINK && $BLOJSOM_PLUGIN_TAG_CLOUD_MAP)
<div>
<strong>Cloud:</strong><p/>
#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
URL Parameters
The following URL parameters control the operation of this plugin.
| URL parameter |
Accepted values |
Usage |
| tq |
The "tq" parameter can be any of the tags you've used when tagging your blog entries. The plugin will filter using the tag from this parameter for any entries that have the tag. |
/blog/?tq=foo |