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 Applications.WikiTopic
- FIELDS: fields to be edited, defaults to TopicTitle, Summary
Implementation
%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%
Test
Calls to 'RenderWikiTopicEditor'
Copyright
© 2006-2013 Michael Daum
http://michaeldaumconsulting.com
This file is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version. For
more details read the
LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.