Documentation

This function is used by the rest handler to render the settings tab in the category editor

Parameters
  • BASETOPIC
  • TOPICPARENT

Implementation

%STARTINCLUDE%<!-- render category settings -->
<literal>
<table class="foswikiLayoutTable">
<tr>
  <th>%MAKETEXT{"Parent topic"}%:</th>
  <td><input class="foswikiInputField" type="text" name="topicparent" size="80" value="%IF{"defined TOPICPARENT" then="%TOPICPARENT%"}%" /></td>
</tr>
<tr>
  <th>%MAKETEXT{"Imported Categories"}%:</th>
  <td><input class="foswikiInputField" type="text" name="ImportedCategory" size="80" value="%FORMFIELD{topic="%BASEWEB%.%BASETOPIC%" "ImportedCategory"}%" /></td>
</tr>
<tr>
  <th valign="top">%MAKETEXT{"Icon"}%:</th>
  <td>
    %DBCALL{"Applications.ClassificationApp.RenderIconSelector"
      VALUE="%URLPARAM{"Icon" default="%FORMFIELD{topic="%BASEWEB%.%BASETOPIC%" "Icon"}%"}%"
      SOURCE="%CLASSIFICATIONPLUGIN_ICONSET%"
    }%
  </td>
</tr>
</table>
</literal>
<!-- //render category settings -->%STOPINCLUDE%

Test

Parent topic:
Imported Categories:
Icon:
%ATTACHMENTS{ topic="Applications.ClassificationApp.IconSet" name=".*\.(jpe?g|JPE?G|gif|GIF|png|PNG)$" sort="name" format="
" }%

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.

ApplicationTopic edit

TopicType DocuTopic, TopicFunction
TopicTitle
Summary Renders the content of the settings tab in the category editor
WikiApplication ClassificationApp
Topic revision: r1 - 07 Jan 2013, ProjectContributor
Warning: Can't find topic Applications/ClassificationApp.WebLeftBarExample

 

Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.