%TOC{depth="2"}% ---++ Documentation %STARTSECTION{"documentation"}% This function renders an editor for a normal WikiTopic to be displayed at the topic of the text tab. ---++++ Parameters * BASETOPIC * FORM: name of the form definition, defaults to <nop>Applications.WikiTopic * FIELDS: fields to be edited, defaults to <nop>TopicTitle, Summary %ENDSECTION{"documentation"}% ---++ Implementation <verbatim class="tml"> %STARTINCLUDE%<!-- render wiki topic editor --> <literal> <div class="natEditTopicInfo"> %RENDERFOREDIT{ topic="%BASEWEB%.%BASETOPIC%" form="%IF{"defined FORM" then="%FORM%" else="Applications.WikiTopic"}%" field="%IF{"defined FIELDS" then="%FIELDS%" else="TopicTitle,Summary"}%" header="<table class='foswikiLayoutTable jqTooltip'>" format="<tr title='$description'><th valign='top'>$title:</th><td valign='top'>$edit</td></tr>" footer="</table>" TopicTitle_title="%MAKETEXT{"Title"}%" Summary_title="%MAKETEXT{"Summary"}%" }% %IF{"'%BASEWEB%.%BASETOPIC%'/text=~'\-\-\-\+[^\+]'" then="$percntTWISTY{ remember=\"on\" firststart=\"show\" showimgleft=\"%ICONURLPATH{toggleopen-small}%\" hideimgleft=\"%ICONURLPATH{toggleclose-small}%\" showlink=\"%MAKETEXT{"Show message"}%\" hidelink=\"%MAKETEXT{"Hide message"}%\" }$percnt <div class='foswikiWarningMessage'>%MAKETEXT{"Note: there's an explicit title (h1) in the topic text. Therefore, the above information won't be displayed. To remove this warning message, move the h1 heading from the text to the title field, or use only h2-h6 within the text."}%</div> $percntENDTWISTY$percnt" }%<!-- --> </div> </literal> <!-- //render wiki topic editor -->%STOPINCLUDE% </verbatim> ---++ Test %DBCALL{"%TOPIC%"}% %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
>
RenderWikiTopicEditor
Topic revision:
23 Dec 2012,
ProjectContributor
(raw view)
Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.