category

category

Field component to liase with all category field types

formtools.category:

Basic
<cfproperty 
    name="catBasic" type="longchar" required="no" default="" 
    fttype="category" />
Start tree from branch where alias is "news"
<cfproperty 
    name="catNews" type="longchar" required="no" default="" 
    fttype="category" ftAlias="news" />
Render tree as select field
<cfproperty 
    name="catSelect" type="longchar" required="no" default="" 
    fttype="category" ftRenderType="dropDown" />
Render tree as select field with 10 rows displayed and first option as "Please Select..."
<cfproperty 
    name="catSelect" type="longchar" required="no" default="" 
    fttype="category" ftRenderType="dropDown" ftSelectSize="10" 
    ftDropdownFirstItem="Please Select..." />

Attributes

NameRequiredDefaultOptionsDescription
ftAliasNoUsed to render only a particular branch of the category tree.
ftRenderTypeNojqueryThis formtool offers a number of ways to render the input. (dropdown, prototype, extjs, jquery)
ftSelectMultipleNotrueAllow selection of multiple items in category tree. (true, false)
ftSelectSizeNo5Used when ftRenderType is set to dropDown, specifies the size of the select field.
ftDropdownFirstItemNoUsed when ftRenderType is set to dropDown, prepends an option to select list with null value.
ftJQueryAllowEditNotrue
ftJQueryAllowAddNotrue
ftJQueryAllowRemoveNotrue
ftJQueryAllowMoveNotrue
ftJQueryAllowSelectNotrue
ftJQueryQuickEditNofalseIf ftJQueryAllowSelect is false and this is true, then clicking a node shows the edit icons (default behaviour is to only show them on a long click)
ftJQueryOnEditNoOverrides the default Javascript which performs this task (should expect 'node' variable)
ftJQueryOnAddNoOverrides the default Javascript which performs thistask (should expect 'node' and 'newid' variables)
ftJQueryOnRemoveNoOverrides the default Javascript which performs thistask (should expect 'node' variable)
ftJQueryOnMoveNoOverrides the default Javascript which performs thistask (should expect 'node', 'parent', 'position', and 'finishMove' variables)
ftJQueryOnSelectNoOverrides the default Javascript which performs thistask (should expect 'node' and 'selected' variables)
ftJQueryOnUpdateStartNoOverrides the default Javascript which runs when an ajax update operation starts
ftJQueryOnUpdateFinishNoOverrides the default Javascript which runs when an ajax update operation finishes
ftJQueryOnUpdateErrorNoOverrides the default Javascript which runs when an ajax update operation errors (should expect 'error' and 'code' variables)
ftJQueryVisibleInputsNotrueControls whether the checkbox / radio buttons are shown to the user
ftEditablePropertiesNocategoryLabelList of the properties that the user can edit in the case of ftJQueryAllowEdit and ftJQueryAllowAdd
ftJQueryURLNotrueOverrides the AJAX URL