Tagcloud Plugin
All you have todo is adding the following in the config.xml of your collection:
and a little xsl to display the data:
have fun :)
<?xml version="1.0"?>
<bxcms xmlns="http://bitflux.org/config">
<plugins>
<parameter name="xslt" type="pipeline" value="tagcloud.xsl"/>
<plugin type="navitree">
</plugin>
<plugin type="tagcloud">
<parameter name="locations" value="/blog/"/>
<parameter name="maxfontsize" value="56"/>
<parameter name="minfontsize" value="20"/>
</plugin>
</plugins>
</bxcms>
and a little xsl to display the data:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:blog="http://bitflux.org/doctypes/blog" xmlns:bxf="http://bitflux.org/functions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:php="http://php.net/xsl" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rss="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" exclude-result-prefixes="xhtml">
<xsl:import href="master.xsl"/>
<xsl:import href="../standard/common.xsl"/>
<xsl:output encoding="utf-8" method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
<xsl:template name="content">
<p id="tagcloud">
<xsl:for-each select="/bx/plugin[@name='tagcloud']/tagcloud/tag">
<a href="{$webrootW}{path}archive/tag/{name}" style="font-size:{size}px;">
<xsl:value-of select="name"/>
</a> 
</xsl:for-each>
</p>
</xsl:template>
</xsl:stylesheet>
have fun :)
