You are here:
Foswiki
>
Applications Web
>
TopicType
>
TopicFunction
>
RenderWikiTopicEditor
E
dit
A
ttach
Tags:
create new tag
,
view all tags
%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
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.