Render a single
BlogEntry
Parameters
Urlparams
Implementation
Main
%STARTINCLUDE%
*~~
~~~ %STOPALIASAREA%
~~~
%~~ DBCALL{"RenderDocNavigation"
~~~ NAME="%NAME%"
~~~ WHERE="TopicType=~'\bBlogEntry\b' AND State='published'
~~~ AND SubjectCategory=~'\b%URLPARAM{"cat" default=".*"}%\b'"
~~~ REVERSE="on"
~~~ PARAMS="%IFDEFINED{"%URLPARAM{"cat"}%" then="cat=$test"}%"
~~~ }%
~~~ <a name="%WEB%_%NAME%"></a>
~~~
%~~ DBQUERY{%IFDEFINED{"%WIKINAME%" as="WikiGuest" then="\"State='published'\""}%
~~~ topic="%NAME%" web="%WEB%"
~~~ format="%DBCALL{"%TOPIC%" section="format"
~~~ PARAMS="%IFDEFINED{"%URLPARAM{"cat"}%" then="cat=$test"}%"
~~~ }%"
~~~ }%
~~~
%~~ DBQUERY{"State='unpublished'" topic="%NAME%"
~~~ format="$percntDBCALL{\"BlogHelpText\"
~~~ section=\"Unpublished\"
~~~ NAME=\"posting\"}$percnt"
~~~ }%
~~~
%~~ DBCALL{"RenderDocNavigation"
~~~ NAME="%NAME%"
~~~ WHERE="TopicType=~'\bBlogEntry\b' AND State='published
~~~ AND SubjectCategory=~'\b%URLPARAM{"cat" default=".*"}%\b'"
~~~ REVERSE="on"
~~~ PARAMS="%IFDEFINED{"%URLPARAM{"cat"}%" then="cat=$test"}%"
~~~ }%
~~~ %STARTALIASAREA%
*~~
%STOPINCLUDE%
%STARTSECTION{"format"}%
*~~ <div class=\"blogEntry\">
~~~ $n<noautolink>$n
~~~ <div class=\"blogHeadline\">
~~~ <h1>
~~~ <a href=\"$percntSCRIPTURLPATH{\"view\"}$percnt/$web/$topic
*~~ %IFDEFINED{"%PARAMS%" then="?%PARAMS%"}%\"
~~~ title=\"permalink to <nop>$topic\">
~~~ $formfield(Headline)
*~~ </a>$percntREDDOT{\"$web.$topic\"}$percnt
~~~ </h1></div>
~~~ $n</noautolink>$n
~~~ <div class=\"blogInfo\">
~~~ <span class=\"blogDate\">
~~~ $formatTime(createdate, '$day $mon $year - $hour:$minute')
~~~ </span>
~~~ $percntFORMATLIST{\"$formfield(SubjectCategory)\" sort=\"on\"
~~~ header=\"in <span class=\\"blogCategory\\">\"
~~~ format=\"<a href=\\"%SCRIPTURLPATH{"view"}%/$web/$1\\" rel=\\"tag\\">$1</a>\"
~~~ footer=\"</span>\"
~~~ }$percnt
~~~ $percntTAGCLOUD{\"$formfield(BlogTag)\" sort=\"on\"
~~~ split=\"[\s,]+\"
~~~ sort=\"weight\"
~~~ warn=\"off\"
~~~ header=\"tagged <span class=\\"blogTag\\">\"
~~~ separator=\", \"
~~~ format=\"<a href=\\"%SCRIPTURLPATH{"view"}%/$web/BlogArchive?mode=tag;search=$term\\"
~~~ rel=\\"tag\\">$term</a>\"
~~~ footer=\"</span>\"
~~~ }$percnt
~~~ <span class=\"blogAuthor\">by [[$web.$formfield(BlogAuthor)][$formfield(BlogAuthor)]] </span>
~~~ $n
~~~ </div>
~~~ %STARTALIASAREA%
~~~ <div class=\"blogText\">
~~~ $n<noautolink>$n
~~~ <div class=\"blogTeaser\">
~~~ $formfield(Teaser)
~~~ </div>$n
~~~ $formfield(Text)
~~~ $n</noautolink>$n
~~~ </div>
~~~ %STOPALIASAREA%
~~~ <br clear=\"all\" />
~~~ </div>
*~~
%ENDSECTION{"format"}%
Test
*~~
~~~ %STOPALIASAREA%
~~~
%~~ DBCALL{"RenderDocNavigation"
~~~ NAME="BlogEntry0"
~~~ WHERE="TopicType=~'\bBlogEntry\b' AND State='published'
~~~ AND
SubjectCategory=~'\b.*\b'"
~~~ REVERSE="on"
~~~ PARAMS="%IFDEFINED{"" then="cat=$test"}%"
~~~ }%
~~~
~~~
%~~ DBQUERY{%IFDEFINED{"WikiGuest" as="WikiGuest" then="\"State='published'\""}%
~~~ topic="BlogEntry0" web="PRINCE2"
~~~ format="%DBCALL{"RenderDocumentEntry" section="format"
~~~ PARAMS="%IFDEFINED{"" then="cat=$test"}%"
~~~ }%"
~~~ }%
~~~
%~~ DBQUERY{"State='unpublished'" topic="BlogEntry0"
~~~ format="$percntDBCALL{\"BlogHelpText\"
~~~ section=\"Unpublished\"
~~~ NAME=\"posting\"}$percnt"
~~~ }%
~~~
%~~ DBCALL{"RenderDocNavigation"
~~~ NAME="BlogEntry0"
~~~ WHERE="TopicType=~'\bBlogEntry\b' AND State='published
~~~ AND
SubjectCategory=~'\b.*\b'"
~~~ REVERSE="on"
~~~ PARAMS="%IFDEFINED{"" then="cat=$test"}%"
~~~ }%
~~~ %STARTALIASAREA%
*~~
Calls to 'RenderDocumentEntry'
%~~ DBQUERY{"text=~'\bRenderDocumentEntry\b'"
~~~ exclude="RenderDocumentEntry"
~~~ format=" *
$topic"
~~~ }%
*~~