AVR32 Linux Developer Blog

Function: RenderBlogPage

Render the header of a BlogPage

Parameters

Implementation

%STARTINCLUDE%
%~~ DBQUERY{topic="%NAME%" web="%WEB%"
~~~   format="%DBCALL{"RenderBlogPage" section="format"}%"
~~~ }%
<style type="text/css">.natTopicForm, .twikiForm {display:none}</style>
%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'

TopicForm
TopicType: TopicFunction
TopicDescription: Render the header of a BlogPage
r1 - 2006-02-15 - 21:58:23 - TWikiContributor
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.