r2 - 20 Aug 2008 - 12:11:46 - PeterSykoraYou are here: CWiki >  Blogs Web > TopicFunction > RenderBlogEntriesInCategory

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)<p />"}% 
</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 CWiki

Calls to 'RenderBlogEntriesInCategory'

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < 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.