midcom.helper.datamanager2
flack edited this page Sep 26, 2019
·
12 revisions
This library holds the second generation of the Datamanager. It is configurable via Datamanager Schemas.
Widgets
The widget
setting determines how the field will be rendered in the form
Standard HTML Widgets
- checkbox - creates HTML input type="checkbox"
- hidden - creates HTML input type="hidden"
- password - creates HTML input type="password"
- radiocheckselect - creates HTML input type="radio" or type="checkboxs"
- select - creates HTML select
- text - creates HTML input type="text"
- textarea - creates HTML textarea
Specialized Widgets
- captcha
- downloads - Widget for one or more files
- image
- images
- photo - Specialized image widget with support for EXIF operations
Javascript Widgets
- tinymce - TinyMCE widget
- codemirror - CodeMirror widget
- privilegecheckbox - manages ACL Privileges with checkboxes
- autocomplete - search-based selector
AJAX widgets
- composite - for creating multiple entries
- privilegeselection - for managing MidCOM ACL privileges
Types
The type
setting determines how a field's data is treated in PHP
- blobs - files
- boolean
- captcha
- date
- image
- images
- mnrelation - M:N relations
- number
- parameters
- password
- photo
- privilege - ACL management
- privilegeset
- select
- tags - net.nemein.tag objects
- text - text based inputs. Uses HTMLPurifier for input validation
- unixdate