%TOC{depth="2"}% ---++ Documentation %STARTSECTION{"documentation"}% This function renders a view for a wiki topic, showing its title and the summary line. ---+++ Parameters * TITLE_EXTRA: optional addition put behind the topic title %ENDSECTION{"documentation"}% ---++ Implementation <verbatim class="tml"> %STARTINCLUDE%<!-- --> %IF{"'%BASEWEB%.%BASETOPIC%'/text=~'\-\-\-\+[^\+]'" else="$percntDBCALL{\"%WEB%.%TOPIC%\" section=\"title\"}$percnt" }%<!-- -->%STOPINCLUDE% </verbatim> ---++ Render title <verbatim class="tml"> %STARTSECTION{"title"}%<noautolink> %DBQUERY{topic="%BASEWEB%.%BASETOPIC%" format="<h1 >[[$web.$topic][$expand(topictitle)]] %IF{"defined 'TITLE_EXTRA'" then="<span class='foswikiTopicExtra'>%TITLE_EXTRA%</span>"}% $expand('<br /><span class=\"foswikiTopicSummary\">' and Summary and '</span>')</h1>" }%</noautolink> %ENDSECTION{"title"}% </verbatim> ---++ Test %DBCALL{"%TOPIC%" TITLE_EXTRA="(approved)"}% %DBCALL{"Applications.RenderFunctionCallers"}% ---++ Copyright © 2006-2013 Michael Daum http://michaeldaumconsulting.com %DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}%
ApplicationTopic
edit
TopicType
DocuTopic
,
TopicFunction
TopicTitle
Summary
WikiApplication
WikiWorkbench
This topic: Applications
>
TopicType
>
TopicFunction
>
RenderWikiTopicView
Topic revision:
23 Dec 2012,
ProjectContributor
(raw view)
Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.