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

Function: RenderBlogRoll

Render the list of BlogLinks? in the sidebar

Parameters

  • CAT: reduce the blogroll to BlogLinks? in the given SubjectCategory (optional)
  • NOCAT: exclude BlogLinks? which are in this SubjectCategory (optional)
  • AUTHOR: display the blogroll of the given author (optional)
  • TITLE: string describing this blogroll, defaults to "Blogroll"

Implementation

%STARTINCLUDE%
~~~
%~~ DBQUERY{"TopicType=~'\bBlogLink\b' 
~~~     %IFDEFINED{"%CAT%" then="AND SubjectCategory=~'\b%CAT%\b'" glue="off"}%
~~~     %IFDEFINED{"%NOCAT%" then="AND !(SubjectCategory=~'\b%NOCAT%\b')" glue="off"}%
~~~     %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'" glue="off"}%"
~~~   web="%WEB%"
~~~   order="Name" hidenull="on"
~~~   header="<div class=\"blogSideBarSection blogSideBarAggregations\"><noautolink>
~~~     <h1 class=\"blogSideBarHeader\">
*~~       %IFDEFINED{"%TITLE%" then="%TITLE%" else="Blogroll"}%
*~~       $percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt</h1><ul>"
~~~   format="<li>
~~~      $percntIFDEFINEDTHEN{\"$formfield(Feed)\" glue=\"off\"}$percnt
~~~        <a href=\"%SCRIPTURLPATH{"view"}%/$web/$topic
*~~           %IFDEFINED{"%CAT%" then="?cat=%CAT%"}%\"
~~~           title=\"$formfield(Headline)\">$formfield(Name)</a>
~~~      $percntELSEDEFINED$percnt
~~~        <a href=\"$formfield(Url)\"
~~~           title=\"$formfield(Headline)\">$formfield(Name)</a>
*~~        $percntREDDOT{\"$web.$topic\"}$percnt
~~~      $percntFIDEFINED$percnt </li>"
~~~   footer="</ul></noautolink></div>"
~~~ }%
*~~
~~~
%STOPINCLUDE%

Test

Calls to 'RenderBlogRoll'

TopicForm
TopicType TopicFunction
TopicDescription Render the list of BlogLinks? in the sidebar
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
Blog.RenderBlogRoll moved from Blog.RenderAggregations on 24 Oct 2005 - 16:12 by MichaelDaum?
 
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.