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

Function: RenderPages

Renders a list of BlogPages? put into the sidebar

Parameters

  • AUTHOR: restrict list to pages done by this author (optional)

Implementation

%STARTINCLUDE%
~~~ %STOPALIASAREA%
%~~ DBQUERY{"TopicType=~'\bBlogPage\b' AND (form!='Blog(Page|Entry)Form' OR State='published')
~~~      %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'" glue="off"}%"
~~~   hidenull="on"
~~~   header="<noautolink><div class=\"blogSideBarSection blogSideBarPages\">$n
~~~           <h1 class=\"blogSideBarHeader\">Pages$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt</h1><ul>"
~~~   format="<li><a href=\"%SCRIPTURLPATH{"view"}%/$web/$topic\"
~~~                  title=\"permalink to $topic\">
*~~                 $expand(Headline or TopicDescription)
*~~           </a> </li>"
~~~   footer="</ul></div></noautolink>"
~~~ }%
~~~ %STARTALIASAREA%
~~~
%STOPINCLUDE%

Test

Calls to 'RenderPages'

TopicForm
TopicType TopicFunction
TopicDescription Renders a list of BlogPages? put into the sidebar
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.