RenderCategoryCloud
Render a cloud of categories

02 May 2019 - 20:19 | Version 1 |

Documentation

TODO

Parameters
  • MIN: minimum frequency of a tags to be shown
  • LIMIT: maximum number of tags in the could, defaults to 100
  • TOPICTYPE: limit search for tags of topics of the given type
  • THEWEB: web to restrict search to, defaults to current

Implementation

%STARTINCLUDE%<noautolink> 
%TAGCLOUD{  
  terms="%DBSTATS{ 
    "TopicType=~'\b(Categorized|Classified)Topic\b' AND TopicType!~'\bCategory\b'" 
    format="$percntCATINFO{cat=\"$key\" web=\"$web\" format=\"$title:$count:$key\"}$percnt"  
    separator=", " 
    field="Category" 
    sort="modifiedto" 
    reverse="on" 
    limit="%LIMIT{default="0"}%" 
    web="%THEWEB{default="%BASEWEB%"}%"  
  }%"  
  header="<div class='clsTagCloud'>"  
  format="$percntCATINFO{
         cat=\"$3\"
         web=\"%THEWEB{default="%BASEWEB%"}%\"
         format=\"<span style='font-size:$weightpx;line-height:110%'><a href='$url' style='color:$fadeRGB(%TAGCLOUD_START{default="111,169,255"}%,%TAGCLOUD_END{default="0,89,224"}%);'>$title</a></span>\"
      }$percnt"
  footer="</div>"  
  group="<strong>$group</strong>&nbsp;"  
  split="\s*,\s*"  
  buckets="25"  
  offset="13"  
  warn="off"  
  min="%MIN{default="0"}%" 
}% </noautolink>%STOPINCLUDE%

Test

< 

Copyright

© 2006-2019 Michael Daum http://michaeldaumconsulting.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding AustLII Communities? Send feedback
This website is using cookies. More info. That's Fine