r6 - 20 Aug 2008 - 12:14:03 - PeterSykoraYou are here: CWiki >  Blogs Web > TopicFunction > RenderFullTeaser

Function: RenderFullTeaser

Render a BlogEntry for a FrontPage

see also: RenderBlogTeaser

Parameters

  • NAME: BlogEntry topic name
  • PARAMS: additional urlparams that are added to the permalinks (optional)

Implementation

Main

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

Format

%STARTSECTION{"format"}%
*~~ <div class=\"blogEntry\">$n
~~~ %STOPALIASAREA%
~~~ <noautolink>
~~~ <table class=\"blogHeadline\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
~~~   <tr><td width=\"100%\">
~~~   <h2>
~~~     <a href=\"$percntSCRIPTURLPATH{\"view\"}$percnt/$web/$topic
*~~       %IFDEFINED{"%PARAMS%" then="?%PARAMS%"}%\" 
~~~       title=\"permalink to <nop>$topic\">
~~~       $formfield(Headline)
*~~     </a>$percntREDDOT{\"$web.$topic\"}$percnt
~~~   </h2>$n
~~~   </td>
~~~   <td class=\"blogCommentCount\" nowrap>
~~~     $percntCOUNTCOMMENTS{\"$web.$topic\" hidenull=\"on\"
~~~       format=\"<a href=\\"$dollarpercntSCRIPTURLPATH{\\"view\\"}$dollarpercnt/
*~~         $web/$topic#topComment\\" 
~~~         title=\\"Kommentare zu <nop>$topic\\">$dollarcount Kommentar(e)</a>\"
~~~     }$percnt
~~~   </td></tr>
~~~  </table>$n
~~~  </noautolink>
~~~  <div class=\"blogInfo\">
~~~    <span class=\"blogDate\">
~~~      $percntTIMESINCE{
~~~        \"$expand(Date)\"
~~~        format=\"Vor $time\" 
~~~        null=\"gerade eben\"
~~~      }$percnt
~~~    </span>
~~~    <span class=\"blogCategory\"> 
~~~    $percntFORMATLIST{\"$formfield(SubjectCategory)\" sort=\"on\" 
~~~      header=\"in <span class=\\"blogCategory\\">\"
~~~      format=\"<a href=\\"%SCRIPTURLPATH{"view"}%/$web/$1\\" rel=\\"tag\\">$1</a>\"
~~~      footer=\"</span>\"
~~~    }$percnt
~~~    <span class=\"blogAuthor\"> 
~~~      von [[$web.$formfield(BlogAuthor)][$formfield(BlogAuthor)]] 
~~~    </span>
~~~  </div>$n
~~~  %STARTALIASAREA%
~~~  <div class=\"blogText\">
~~~    <div class=\"blogTeaser\">
~~~      $formfield(Teaser)
~~~    </div>
~~~    $formfield(Text)
~~~    <div class=\"blogMore\"> &#8230;&nbsp;</br>
*~~      <a href=\"$percntSCRIPTURLPATH{\"view\"}$percnt/$web/$topic
*~~        %IFDEFINED{"%PARAMS%" then="?%PARAMS%"}%\" 
~~~        title=\"permalink to <nop>$topic\">Antworten</a>
~~~    </div>
~~~  </div>$n
~~~  %STOPALIASAREA%
~~~  <br clear=\"all\" />
~~~ </div>
%ENDSECTION{"format"}%

Test

Let's get blogged

Vor 6 Jahren, 9 Monaten von MichaelDaum?
This is a test blog entry.
We will use this BlogEntry for testing, especially for all TopicFunctions?. The state of this BlogEntry is 'unpublished' to exclude it from the FrontPages?.

This edit isn't on speedy anymore.

… 
Antworten

Calls to 'RenderFullTeaser'

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r6 < r5 < r4 < r3 < r2 | More topic actions
 
CWiki
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding CWiki? Send feedback.