RenderCategoryFactory
Renders a factory for Categories

23 January 2017 - 14:14 | Version 1 |

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:

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