Function: RenderCreateNewTopic

Provides interface for creating new classified topics

Documentation

RenderCreateNewTopic provides the user interface for creating new topics utilizing the TopicClassification scheme. It is INCLUDED in the CreateNewTopic in each web that utilizes TopicClassificationAddOn.

After the TopicType is selected, the "new" section of that TopicType in the local web is INCLUDED, which in turn INCLUDES RenderTopicCreator and sets it's parameters. The purpose for this arrangement is to allow customization of the options for that TopicType within the particular web.

Parameters
  • none needed.

Css
  • n/a

Implementation

%STARTINCLUDE%
<form name="selectType" action="%SCRIPTURL{view}%/%BASEWEB%/%BASETOPIC%" />
<h3> Create A New 
~~~    <select name="type" onchange="this.form.submit( )" >
~~~    <option>Select<nop>TopicType...</option>
~~~     <option %IFDEFINED{"%URLPARAM{"type"}%" as="Blank.*Topic" then="selected" glue="off"}% >Blank Topic</option>
~~~
%~~     DBQUERY{"Classification = 'TopicType'" 
~~~         web="%BASEWEB%" 
~~~         format="<option value=\"$topic\" 
~~~               $percntIFDEFINED{\"%URLPARAM{type}%\" as=\"$topic\" then=\"selected\" glue=\"off\"}$percnt >
*~~               $percntSPACEOUT{$topic}$percnt</option>" 
~~~         separator=" " 
~~~      }% 
~~~      </select></span></h3>
<input name="step" type="hidden" value="two">
<input type="hidden" name="parent" value="<nop>%URLPARAM{parent}%" />
</form>

%IFDEFINEDTHEN{"%URLPARAM{step}%" as="two" glue="off"}%
%INCLUDE{ %IFDEFINED{ "%URLPARAM{type}%" as="Blank Topic" then="\"%TCAOWEB%.RenderTopicCreator\" FORM=\"none\"" else="\"%BASEWEB%.%URLPARAM{type}%\" section=\"new\"" }% }%
%FIDEFINED%

%BR% _%ICON{help}% For more information about how topics are organized within the <nop>%BASEWEB% web, see %BASEWEB%.TopicClassification._

%STOPINCLUDE%

Test

Create A New


help For more information about how topics are organized within the TCAO web, see TopicClassification.

Calls to 'RenderCreateNewTopic'

(C) 2006 LynnwoodBrown@Skyloom.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