'cause everyone should have a blog

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='enabled')
~~~      %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'" glue="off"}%"
~~~   hidenull="on"
~~~   header="<noautolink><div class=\"blogSideBarSection blogSideBarPages\">$n
~~~           <h1>Pages$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt</h1><ul>"
~~~   format="<li><a href=\"%SCRIPTURL{"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

r2 - 21 Mar 2006 - 02:36 - TWikiAdminGroup
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding QBFreak.net? Send feedback
Powered by TWiki/Dakar Wed, 08 Feb 2006 build 8740