Function: RenderFullTeaser

Render a BlogEntry for a FrontPage

see also: RenderBlogTeaser

Parameters

Implementation

Main

%STARTINCLUDE%
%~~ DBQUERY{topic="%NAME%"
~~~   format="%DBCALL{"RenderFullTeaser" section="format"}%"}%
~~~ %DBCALL{"RenderBlogAuthorSwitch"}%
%STOPINCLUDE%

Format

%STARTSECTION{"format"}%
*~~ <div class=\"blogEntry\">$n
~~~ %STOPALIASAREA%
~~~ <noautolink>
~~~ <table class=\"blogHeadline\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
~~~   <tr><td>
~~~   <h1>
~~~     <a href=\"$percntSCRIPTURL{\"view\"}$percnt/$web/$topic
*~~       %IFDEFINED{"%PARAMS%" then="?%PARAMS%"}%\" 
~~~       title=\"permalink to <nop>$topic\">
~~~       $formfield(Headline)
~~~     </a>$percntREDDOT{\"$web.$topic\"}$percnt
~~~   </h1>$n
~~~   </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
~~~  </noautolink>
~~~  <div class=\"blogInfo\">
~~~    <span class=\"blogDate\">
~~~      $percntTIMESINCE{
~~~        \"$expand(Date)\"
~~~        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>$n
~~~  <noautolink>$n
~~~  %STARTALIASAREA%
~~~  <div class=\"blogText\">
~~~    <div class=\"blogTeaser\">
~~~      $formfield(Teaser)
~~~    </div>
~~~    $formfield(Text)
~~~    <div class=\"blogMore\">...&nbsp;
*~~      <a href=\"$percntSCRIPTURL{\"view\"}$percnt/$web/$topic
*~~        %IFDEFINED{"%PARAMS%" then="?%PARAMS%"}%\" 
~~~        title=\"permalink to <nop>$topic\">more</a>
~~~    </div>
~~~  </div>$n
~~~  %STOPALIASAREA%
~~~  </noautolink>
~~~ </div>
%ENDSECTION{"format"}%

Test

Let's get blogged

6 years, 9 months ago in by MichaelDaum?
This is a test blog entry.
We will use this BlogEntry for testing, especially for all TopicFunctions. The state of this BlogEntry is disabled to exclude it from the FrontPages.

This edit isn't on speedy anymore.

... more

Calls to 'RenderFullTeaser'

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