Decent Blogging using TWiki

Function: RenderBlogRoll

Render the list of BlogLinks in the sidebar

Parameters

Implementation

%STARTINCLUDE%
~~~
%~~ DBQUERY{"TopicType=~'\bBlogLink\b' AND SubjectCategory=~'\b%CAT%\b'" web="%WEB%"
~~~   order="Name" hidenull="on"
~~~   header="<div class=\"blogSideBarSection blogSideBarAggregations\"><noautolink>
~~~     <h1>Blogroll$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt</h1><ul>"
~~~   format="<li>
~~~      $percntIFDEFINEDTHEN{\"$formfield(Feed)\" glue=\"off\"}$percnt
~~~        <a href=\"%SCRIPTURL{"view"}%/$web/$topic\"
~~~           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
r1 - 2006-02-06 - 14:01:25 - TWikiContributor
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.