You are here:
Foswiki
>
Applications Web
>
TopicType
>
TopicFunction
>
RenderWikiTopicView
E
dit
A
ttach
Tags:
create new tag
,
view all tags
%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
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 23 Dec 2012,
ProjectContributor
Applications
Log In
or
Register
Tools
TopicTypes
DataForms
DataFormAttributes
TopicTemplates
TopicViews
TopicFunctions
Webs
Applications
ClassificationApp
Extensions
Main
System
Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.