Dashboard > blojsom 3.0 > ... > Plugins > Technorati Tags Plugin
  blojsom 3.0 Log In   View a printable version of the current page.  
  Technorati Tags Plugin
Added by David Czarnecki, last edited by David Czarnecki on Jul 10, 2007  (view change)
Labels: 
(None)

Availability

Available as of blojsom 2.25.

Description

The Technorati tags plugin allows you to add Technorati tags to your blog entries. The Technorati tags link back to the proper Technorati tag page to show other Technorati-tracked posts from around the web with the same tag.

Installation and Setup

In your /WEB-INF/classes/blojsom-plugins.xml file, add the following:

<bean id="technorati-tags" class="org.blojsom.plugin.technorati.TechnoratiTagsPlugin" init-method="init"
          destroy-method="destroy">
        <property name="eventBroadcaster">
            <ref bean="eventBroadcaster"/>
        </property>
        <property name="servletConfig">
            <ref bean="servletConfigFactoryBean"/>
        </property>
        <property name="velocityProperties">
            <ref bean="defaultVelocityProperties"/>
        </property>
    </bean>

You may then add "technorati-tags" to one of the flavor-based plugin chains.

The plugin uses the following link template for creating Technorati tag links.

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

If you would like to override this link template, you may do so by adding a page org/blojsom/plugin/technorati/templates/technorati-tag-link.vm under your blog's templates directory. You may do this through the web administration console or through the command-line.

Usage

After installing the plugin, an editing box will show up when adding or editing a blog entry to allow you to edit the Technorati tags for the particular blog entry. You may separate individual tags using a comma.

The Technorati tags plugin adds the following meta-data to your blog entry, technorati-tags, which contains a comma-separated list of Technorati tags. If you wanted to add tags to an entry from an external editor or some other mechanism, you could use the following in the body of your blog entry. Be sure to include the Meta plugin before this plugin if you are creating tags this way.

meta-technorati-tags=foo, bar, baz

In any of your blog template pages, you can use the following Velocity macro to print out the Technorati tag links.

#TechnoratiTags($entry)

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators