Render a set of postings to leaf through
see:
RenderFullTeaser,
RenderBlogTeaser,
RenderFrontTeaser,
RenderPageNavigation
Parameters
- SKIP: offset into the archive
- LIMIT: number of postings to show maximal
- CAT: categories to extract (optional)
- TAG: tagged entries to be extracted (optional)
- AUTHOR: extract postings of this author (optional)
Implementation
%STARTINCLUDE%
~~~
%~~ DBQUERY{
~~~ "TopicType=~'\bBlogEntry\b' AND State='published'
~~~ %IFDEFINED{"%CAT%" then="AND SubjectCategory=~'\b%CAT%\b'" glue="off"}%
~~~ %IFDEFINED{"%TAG%" then="AND BlogTag=~'\b%TAG%\b'" glue="off"}%
~~~ %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'" glue="off"}%
~~~ "
~~~ limit="%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="5"}%"
~~~ skip="%IFDEFINED{"%SKIP%" then="%SKIP%" else="0"}%"
~~~ order="created" reverse="on" web="%WEB%"
~~~ format="%DBCALL{"RenderFullTeaser" section="format"
~~~ NAME="$topic"
~~~ PARAMS="%IFDEFINED{"%CAT%" then="cat=%CAT%"}%"}%"
~~~ footer="
*~~ $percntDBCALL{\"$web.RenderPageNavigation\"
~~~ LIMIT=\"%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="5"}%\"
~~~ SKIP=\"%IFDEFINED{"%SKIP%" then="%SKIP%" else="0 "}%\"
~~~ MAX=\"$count\"
~~~ }$percnt
*~~ "
~~~ }%
~~~ %DBCALL{"RenderGoogleAdsense" TYPE="text_image"}%
%STOPINCLUDE%
Test
Calls to 'RenderFrontPage'