AVR32 Linux Developer Blog

Function: RenderFrontTeaser

Render a set of teasers where the first n are rendered verbosly

see: RenderFullTeaser, RenderBlogTeaser, RenderFrontPage

Parameters

  • FULL: number of full teasers
  • LIMIT: number of teasers
  • CAT: categories to extract
  • AUTHOR: extract postings of this author

Implementation

%STARTINCLUDE%
<noautolink>
<!--
%~~ CALC{"$SET(postings,
*~~
%~~   DBQUERY{
~~~      "TopicType=~'\bBlogEntry\b' AND
~~~       SubjectCategory=~'\b%CAT%\b' AND
~~~       State='enabled' AND
~~~       BlogAuthor='%AUTHOR%'
~~~      "
~~~      limit="%LIMIT%" separator=", " order="created" reverse="on"
~~~      web="%WEB%"
~~~   }%
~~~ )$IF($LISTSIZE($GET(postings))==0,$SET(postings,none))"}%
-->
</noautolink>
%~~ DBQUERY{
~~~    web="%WEB%"
~~~    topics="%CALC{"$GET(postings)"}%" 
~~~    limit="%FULL%" order="created" reverse="on" hidenull="on"
~~~    format="%DBCALL{"RenderFullTeaser" section="format" NAME="$topic"}%"
~~~ }%
%~~ DBQUERY{
~~~    web="%WEB%"
~~~    topics="%CALC{"$GET(postings)"}%" 
~~~    skip="%FULL%" limit="%LIMIT%" order="created" reverse="on" hidenull="on"
~~~    header="---+ Earlier Postings$n"
~~~    format="%DBCALL{"RenderBlogTeaser" section="format" NAME="$topic"}%"
~~~ }%
~~~ %DBCALL{"RenderBlogAuthorSwitch"}%
%STOPINCLUDE%

Test

Linux 2.6.22.atmel.2 released

4 years, 9 months ago in , by HaavardSkinnemoen
Linux 2.6.22.atmel.2, containing a small handful of improvements upon the 2.6.22.atmel.1 release, has been released. For more information and downloads, please see the LinuxPatches page.
... more

Earlier Postings

Linux 2.6.22 released...

4 years, 9 months ago in , by HaavardSkinnemoen
…shortly followed by 2.6.22.atmel.1, containing many additional drivers and a few other improvements. Grab it from the LinuxPatches page and give it a spin. Please see the announcement for details.
... more

Mailing lists created

4 years, 10 months ago in , by HaavardSkinnemoen
Two new mailing lists have been created: "kernel" for kernel-related discussions and "u-boot" for bootloader-related discussions. Read more at the MailingLists page.
... more

Calls to 'RenderFrontTeaser'

TopicForm
TopicType: TopicFunction
TopicDescription: Render a set of teasers where the first n are rendered verbosly
r1 - 2005-11-09 - 14:32:42 - 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.