'cause everyone should have a blog

Function: RenderBlogPage

Render the header of a BlogPage

Parameters

Implementation

%STARTINCLUDE%
%~~ DBQUERY{topic="%NAME%" web="%WEB%"
~~~   format="%DBCALL{"RenderBlogPage" section="format"}%"
~~~ }%
%DBCALL{"RenderBlogAuthorSwitch"}%
%STOPINCLUDE%

Format

%STARTSECTION{"format"}%
*~~ <div class=\"blogPageHeadline\">
~~~   <h1>$formfield(Headline)$percntREDDOT{\"$web.$topic\"}$percnt</h1>
~~~ </div>
~~~ <div class=\"blogInfo\">
~~~   <span class=\"blogDate\">
~~~     $formatTime(createdate, '$day $mon $year - $hour:$minute')
~~~   </span>
~~~     $percntFORMATLIST{\"$formfield(SubjectCategory)\" sort=\"on\"
~~~       header=\"in <span class=\\"blogCategory\\">\"
~~~       format=\"<a href=\\"%SCRIPTURL{"view"}%/$web/$1\\" rel=\\"tag\\">$1</a>\"
~~~       footer=\"</span>\"
~~~     }$percnt
~~~   <span class=\"blogAuthor\">by $formfield(BlogAuthor) </span> 
~~~   $n
~~~ </div>
*~~
%ENDSECTION{"format"}%

Test

Calls to 'RenderBlogPage'

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