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.

formtools.arrayupload:

Attributes

NameRequiredDefaultOptionsDescription
ftlibrarydatasqlwhereNoA simple where clause filter for the library data result set. Must be in the form PROPERTY OPERATOR VALUE. For example, status = 'approved'
ftJoinYescomma seperated list of typesA single related content type e.g 'dmImage'
ftAllowCreateNotruetrue,falseAllows user create new record within the library picker
ftAllowEditNofalsetrue,falseAllows user edit new record within the library picker
ftAllowRemoveAllNofalsetrue,falseAllows user to remove all items at once
ftRemoveTypeNoremovedelete,detachdetach will only remove from the join, delete will remove from the database
ftFilePropertyNoThe 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.
ftAllowedFileExtensionsNoThe list of file extensions allowed. The default is to borrow the attribute on the related file property.
ftSizeLimitNoThe upload size limit. The default is to borrow the attribute on the related file property.
ftSimUploadLimitNo1The maximum number of simultaneous uploads.
ftEditablePropertiesNoIf 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.
ftAllowSelectNotruetrue,falseAllows user to select existing records within the library picker
ftlibrarydatasqlorderbyNodatetimelastupdated descNominate a specific property to order library results by.
ftViewNolisttiled,listAllows the formtool to be switched between the traditional list view of normal array fields and a tiled view appropriate for images.
ftTileWidthNo100Width of item tile
ftTileHeightNo100Height of item tile
ftListWebskinNolibrarySelectedThe webskin to use for items displayed in the form
ftLibrarySelectedWebskinNolibrarySelectedThe webskin to use for items displayed in the library picker
ftLibraryListItemWidthNo???
ftLibraryListItemHeightNo???
ftFirstListLabelNo-- SELECT --Used with ftRenderType, this is the value of the first element in the list
ftLibraryDataNoName of a function to return the library data. By default will look for ./webskin/typename/librarySelected.cfm
ftLibraryDataTypenameNoTypename containing the function defined in ftLibraryData