RenderCategorySettings
Renders the content of the settings tab in the category editor

02 May 2019 - 06:19 | Version 1 |

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>%TRANSLATE{"Parent topic"}%:</th>
  <td><input class="foswikiInputField" type="text" name="topicparent" size="80" value="%TOPICPARENT{default=""}%" /></td>
</tr>
<tr>
  <th>%TRANSLATE{"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">%TRANSLATE{"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:
ERROR: DBCALL can't find topic RenderIconSelector in Applications/ClassificationApp

Copyright

© 2006-2019 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.
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Middle Fork Home Wiki? Send feedback
Syndicate this site RSS