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

Function: RenderBlogEntriesOfAuthor

Render all BlogEntries? of a BlogAuthor as teaser.

Parameters

  • NAME: name of a BlogAuthor
  • HOME: home topic of the author, defaults to the one in the Main
  • LIMIT: number of postings per page
  • SKIP: offset into the archive

Implementation

%STARTINCLUDE%
*~~
<h1 style="margin-bottom:0px;padding-bottom:0px">
~~~ [[%IFDEFINED{"%HOME%" then="%HOME%" else="%MAINWEB%.%NAME%"}%][%SPACEOUT{"%NAME%"}%]]
</h1>
<div class="blogArchiveDescription">
   %DBQUERY{topic="%NAME%" format="$expand(TopicDescription)"}%
</div>
%~~ DBCALL{"RenderFrontPage" 
~~~   %IFDEFINED{"%SKIP%" then="SKIP=\"%SKIP%\"" glue="off"}%  
~~~   %IFDEFINED{"%LIMIT%" then="LIMIT=\"%LIMIT%\"" glue="off"}%  
~~~   AUTHOR="%NAME%"
~~~ }%
*~~ 
%STOPINCLUDE%

Test

Calls to 'RenderBlogEntriesOfAuthor'

TopicForm
TopicType TopicFunction
TopicDescription Render all BlogEntries? of a BlogAuthor as teaser.
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.