Function: RenderBlogEntriesInCategory

Renders a set of BlogEntry teasers in a SubjectCategory

Parameters

  • CAT: name of a SubjectCategory
  • LIMIT: number of postings per page
  • SKIP: offset into the archive

Implementation

%STARTINCLUDE%
*~~
<h1 style="margin-bottom:0px;padding-bottom:0px">%CAT%</h1>
<div class="blogArchiveDescription">
  %DBQUERY{topics="%CAT%" format="$expand(TopicDescription)<p />$expand(Comment)"}% 
</div>
%~~ DBCALL{"RenderFrontPage" 
~~~   %IFDEFINED{"%SKIP%" then="SKIP=\"%SKIP%\"" glue="off"}%  
~~~   %IFDEFINED{"%LIMIT%" then="LIMIT=\"%LIMIT%\"" glue="off"}%  
~~~   CAT="%CAT%"
~~~ }%
*~~ 
%STOPINCLUDE%

Test

BlogDev

Development information about blogging on the TWiki

Calls to 'RenderBlogEntriesInCategory'