r1 - 12 Sep 2007 - 19:32:44 - TWikiGuestYou are here: CWiki >  Blogs Web > TopicFunction > RenderBlogArchiveCat

Function: RenderBlogArchiveCat

Renders the BlogArchive in CAT mode

Parameters

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

Implementation

%STARTINCLUDE%
*~~
%STOPALIASAREA%
<noautolink>
*~~
%~~ TAGCLOUD{
~~~   "$percntDBQUERY{\"TopicType=~'\bBlogEntry\b' AND State='published'\"
~~~     format=\"$formfield(SubjectCategory)\" separator=\", \"
~~~   }$percnt"
~~~   buckets="30"
~~~   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=\"%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%?mode=cat;search=$term\"
~~~        title=\"$count\"
~~~        style=\"color:$fadeRGB(%TAGCLOUDFADE%);\"
~~~        class=\"$percntIFDEFINED{\"%QUERY%\" as=\"$term\" then=\"current\"}$percnt\"
~~~     >$term</a></span>"
~~~   footer="</div>"
~~~ }%
%IFDEFINEDTHEN{"%QUERY%"}%
%~~   $nopDBCALL{"RenderBlogArchiveHitList"
~~~     QUERY="AND SubjectCategory=~'\b%QUERY%\b'"
~~~     PARAMS="mode=cat;search=%QUERY%"
~~~   }%
%FIDEFINED%
</noautolink>
%STARTALIASAREA%
*~~
%STOPINCLUDE%

Test

See BlogArchive.

Calls to 'RenderBlogArchiveCat'

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
CWiki
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding CWiki? Send feedback.