Function: RenderBlogArchiveTag

Renders the BlogArchive in TAG mode

Parameters

  • QUERY: the item to be searched for in the archive

Implementation

%STARTINCLUDE%
*~~
%STOPALIASAREA%
<noautolink>
*~~
%~~ TAGCLOUD{"
%~~   DBQUERY{"TopicType=~'\bBlogEntry\b' AND State='enabled'"
~~~     format="$formfield(BlogTag)" separator=", "
~~~   }%"
~~~   buckets="40"
~~~   offset="9"
~~~   split="[,\s]+"
~~~   group="<strong>$group</strong>"
~~~   header="<div class=\"blogArchiveTagCloud\">"
~~~   format="<span style=\"font-size:$weightpx;line-height:90%;margin:0;padding:0;\">
~~~     <a href=\"%SCRIPTURL{"view"}%/%BASEWEB%/%BASETOPIC%?mode=tag;search=$term\"
~~~        title=\"$count\"
~~~        style=\"color:$fadeRGB(124,164,204,0,102,204);\"
~~~        class=\"$percntCALC{\"$IF($EXACT(%QUERY%,$term),current)\"}$percnt\"
~~~     >$term</a></span>"
~~~   footer="</div>"
~~~ }%
%IFDEFINEDTHEN{"%QUERY%"}%
%~~   $nopDBCALL{"RenderBlogArchiveHitList"
~~~     QUERY="AND BlogTag=~'\b%QUERY%\b'"
~~~     PARAMS="mode=tag;search=%QUERY%"
~~~   }%
%FIDEFINED%
%STARTALIASAREA%
</noautolink>
%STOPINCLUDE%

Test

See BlogArchive.

Calls to 'RenderBlogArchiveTag'

r2 - 21 Mar 2006 - 02:36 - TWikiAdminGroup
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding QBFreak.net? Send feedback
Powered by TWiki/Dakar Wed, 08 Feb 2006 build 8740