Documentation
Parameters
- TAG: comma separated list of tags to be searched for in the archive
- CAT: restrict tag cloud to this category; displays all tags of all categories if unspecified
- 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, defaults to
TaggedTopic|ClassifiedTopic
- THEWEB: web to restrict search to, defaults to current
Implementation
%STARTINCLUDE%<!-- -->
<noautolink>
%TAGCLOUD{
terms="%DBSTATS{
"TopicType=~'\b(%TOPICTYPE{default="TaggedTopic|ClassifiedTopic"}%)\b' %FORMATLIST{"%TAG{default=""}%" format="AND Tag=~'\b($1)\b'" separator=" "}%"
format="$key:$count"
separator=", "
field="Tag"
limit="%LIMIT{default="100"}%"
web="%THEWEB{default="%BASEWEB%"}%"
}%"
header="<div class='clsTagCloud'>"
format="<span style='font-size:$weightpx;line-height:1.2'><a href='%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%$percntFORMATLIST{
\"%TAG{default=""}%,$term\"
split=\"\s*,\s*\"
unique=\"on\"
exclude=\"$percntIF{\"'%TAG{default=""}%'=~'$term'\" then=\"\b($term)\b\"}$percnt\"
header=\"?\"
format=\"tag=$1\"
separator=\"&\"
}$percnt' style='color:$fadeRGB(%TAGCLOUD_START{default="111,169,255"}%,%TAGCLOUD_END{default="0,89,224"}%);' name='tag_$term' value='$term' class='$percntIF{\"'%TAG{default=""}%'=~'$term'\" then=\"current\"}$percnt'>$term</a></span>"
footer="</div>"
group="<strong>$group</strong> "
split="\s*,\s*"
buckets="25"
offset="13"
warn="off"
min="%MIN{default="0"}%"
}%</noautolink>
%IF{"'%TAG{default=""}%'!=''"
then="$percntDBCALL{\"%WEB%.%TOPIC%\"
section=\"search\"
TAG=\"%TAG{default=""}%\"
THEWEB=\"%THEWEB{default="%BASEWEB%"}%\"
TOPICTYPE=\"%TOPICTYPE{default="TaggedTopic|ClassifiedTopic"}%\"
}$percnt"
}%%STOPINCLUDE%
%STARTSECTION{"search"}%
%DBQUERY{
"TopicType=~'\b(%TOPICTYPE%)\b' %FORMATLIST{"%TAG%" format="AND Tag=~'\b($1)\b'" separator=" "}%"
web="%THEWEB%"
sort="publishdate"
reverse="on"
format="$percntDBCALL{\"$web.$topic->RenderIndexItem\"}$percnt"
separator="$n<hr />$n"
}%
%ENDSECTION{"search"}%
Test
' style='color:rgb(70,139,243);' name='tag_
ERROR: DBSTATS can't find web ''
' value='
ERROR: DBSTATS can't find web ''
' class='
IF{ "''=~'ERROR: DBSTATS can't find web ''
'" then="current" }: Syntax error in '''=~'ERROR: DBSTATS can't find web ''
'' at '''
'>
ERROR: DBSTATS can't find web ''
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
.
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.