Array Upload
Array Upload
A cross between the array and image formtools; designed for use on the front-end. Consider bulk upload options on array for the webtop.
Attributes
Name | Required | Default | Options | Description |
---|---|---|---|---|
ftlibrarydatasqlwhere | No | A simple where clause filter for the library data result set. Must be in the form PROPERTY OPERATOR VALUE. For example, status = 'approved' | ||
ftJoin | Yes | comma seperated list of types | A single related content type e.g 'dmImage' | |
ftAllowCreate | No | true | true,false | Allows user create new record within the library picker |
ftAllowEdit | No | false | true,false | Allows user edit new record within the library picker |
ftAllowRemoveAll | No | false | true,false | Allows user to remove all items at once |
ftRemoveType | No | remove | delete,detach | detach will only remove from the join, delete will remove from the database |
ftFileProperty | No | The property on the related type that the file is uploaded against. This defaults to sourceImage for dmImage and filename for dmFile. Other relationships must have an explicit value. | ||
ftAllowedFileExtensions | No | The list of file extensions allowed. The default is to borrow the attribute on the related file property. | ||
ftSizeLimit | No | The upload size limit. The default is to borrow the attribute on the related file property. | ||
ftSimUploadLimit | No | 1 | The maximum number of simultaneous uploads. | |
ftEditableProperties | No | If ftAllowEdit is enabled, this property restricts which properties are ediable. Note that using this value will switch the default edit dialog to a minimalist one suitable for front end use. | ||
ftAllowSelect | No | true | true,false | Allows user to select existing records within the library picker |
ftlibrarydatasqlorderby | No | datetimelastupdated desc | Nominate a specific property to order library results by. | |
ftView | No | list | tiled,list | Allows the formtool to be switched between the traditional list view of normal array fields and a tiled view appropriate for images. |
ftTileWidth | No | 100 | Width of item tile | |
ftTileHeight | No | 100 | Height of item tile | |
ftListWebskin | No | librarySelected | The webskin to use for items displayed in the form | |
ftLibrarySelectedWebskin | No | librarySelected | The webskin to use for items displayed in the library picker | |
ftLibraryListItemWidth | No | ??? | ||
ftLibraryListItemHeight | No | ??? | ||
ftFirstListLabel | No | -- SELECT -- | Used with ftRenderType, this is the value of the first element in the list | |
ftLibraryData | No | Name of a function to return the library data. By default will look for ./webskin/typename/librarySelected.cfm | ||
ftLibraryDataTypename | No | Typename containing the function defined in ftLibraryData |