RenderCategoryFactory
Renders a factory for Categories

Documentation

This function renders an input form to create a new category.

Implementation

%STARTINCLUDE%<!-- -->
<noautolink>
<form action="%SCRIPTURLPATH{"save"}%/%BASEWEB%/" method="post">
<input type="hidden" name="refresh" value="on" />
<input type="hidden" name="web" value="%BASEWEB%" />
<input type="hidden" name="onlynewtopic" value="on" />
<input type="hidden" name="formtemplate" value="Applications.ClassificationApp.Category" />
<input type="hidden" name="templatetopic" value="Applications.ClassificationApp.CategoryTemplate" />
<input type="hidden" name="action" value="form" />
<input type="hidden" name="TopicType" value="Category, CategorizedTopic" />
<input type="hidden" name="topicparent" value="none" />
<input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" />
<input type="hidden" name="topic" value="%URLPARAM{"topic" encode="entity"}%"  class="jqWikiWord" data-source="#cattitle" data-suffix="Category" data-transliterate="true" />
<input type="hidden" name="Summary" value="" />
<div class="foswikiFormSteps clsCategoryFactory">
<h2 >%MAKETEXT{"Create a new category in the [_1] web" args="<nop>%WEBLINK{"%BASEWEB%" format="$name"}%"}%</h2>
<div class="foswikiFormStep">
  <h3>%MAKETEXT{"Title"}%:</h3>
  <input class="foswikiInputField" type="text" id="cattitle" name="TopicTitle" size="60" value="%URLPARAM{"TopicTitle" encode="entity"}%" />
</div>
<div class="foswikiFormStep">
  %BUTTON{"%MAKETEXT{"Submit"}%" type="save" icon="add"}%
  %CLEAR%
</div>
</div>
</form>
%JQREQUIRE{"wikiword"}%<!-- -->
</noautolink>
<!-- -->%STOPINCLUDE%

Test

Create a new category in the ClassificationApp web

Title:

Enter the title of the new category. This is a free-form text that the topic name will be derived from by default.

Topic:

Enter the category topic name. This must be a unique ID among all categories within a taxonomy.

Summary

Enter a short summary line describing what this category is about.

Parent category:

Select one or more parent categories that the newly created category is subordinated to.

Icon:

Select an icon to be used when displaying this category in a list or hierarchy tree.

Calls to 'RenderCategoryFactory'

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.
Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.