AVR32 Linux Developer Blog

Function: RenderBlogTeaser

Render a teaser for a BlogEntry

see also: RenderFullTeaser

Parameters

Implementation

Main

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

Format

%STARTSECTION{"format"}%
*~~ <div class=\"blogEntry\">
~~~ %STOPALIASAREA%
~~~   <table class=\"blogHeadline\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
~~~   <tr><td>
~~~   <h2>
~~~     <a href=\"$percntSCRIPTURL{\"view\"}$percnt/$web/$topic\" 
~~~       title=\"permalink to <nop>$topic\">
~~~       $formfield(Headline)
~~~     </a>$percntREDDOT{\"$web.$topic\"}$percnt
~~~   </h2></td>
~~~   <td class=\"blogCommentCount\">
~~~     $percntCOUNTCOMMENTS{\"$web.$topic\" hidenull=\"on\" 
~~~       format=\"<a href=\\"$dollarpercntSCRIPTURL{\\"view\\"}$dollarpercnt/
*~~         $web/$topic#topComment\\" title=\\"comments on <nop>$topic\\">
~~~         $dollarcount</a>\"
~~~     }$percnt
~~~   </td></tr></table>$n
~~~   <div class=\"blogInfo\">
~~~     <span class=\"blogDate\">
~~~       $percntTIMESINCE{
~~~          \"$expand(createdate)\"
~~~          format=\"$time ago\"
~~~          null=\"about now\"
~~~       }$percnt
~~~     </span> in
~~~     <span class=\"blogCategory\"> 
~~~       $percntFORMATLIST{\"$formfield(SubjectCategory)\" 
~~~         sort=\"on\" 
~~~         format=\"<a href=\\"%SCRIPTURL{"view"}%/$web/$1\\" rel=\\"tag\\">$1</a>\"
~~~       }$percnt
~~~     </span>
~~~     <span class=\"blogAuthor\"> 
~~~       by [[$web.$formfield(BlogAuthor)][$formfield(BlogAuthor)]] 
~~~     </span>
~~~   </div>
~~~   %STARTALIASAREA%
~~~   <div class=\"blogText\">$n
~~~      <noautolink>$n
~~~      $formfield(Teaser)
~~~      <div class=\"blogMore\"> ...&nbsp;
*~~        <a href=\"$percntSCRIPTURL{\"view\"}$percnt/$web/$topic\" 
~~~           title=\"permalink to <nop>$topic\">more</a>
~~~      </div>
~~~      </noautolink>$n
~~~   </div>
~~~   %STOPALIASAREA%
~~~ </div>
*~~ 
%ENDSECTION{"format"}%

Test

Let's get blogged

6 years, 8 months ago in by MichaelDaum
This is a test blog entry.
... more

Calls to 'RenderBlogTeaser'

TopicForm
TopicType: TopicFunction
TopicDescription: Render a teaser for a BlogEntry
r1 - 2006-01-03 - 17:44:58 - 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.