Midcom.helper.datamanager2

From OpenPSA Wiki

Jump to: navigation, search

This MidCOM Purecode Component holds the second generation of the MidCOM Datamanager available since MidCOM 2.5.

New features include AJAX support, which lead to features like On-Site Editing and the AJAX powered widgets detailed below. Datamanager 2 also supports forms with multiple pages and introduces the new Datamanager2 Schemas (which are incompatible with the ones from DM1).

Contents

[edit] Widgets

Widgets can be used in any forms or views by specifying the widget for one field in the DM2 Schema definition. Most of widgets only work with a few or just one data type. A widget is defined as a class in the package midcom.helper.datamanager2:

[edit] 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

[edit] Specialized Widgets

captcha
downloads - Widget for one or more files
image
images
photo - Specialized image widget with support for EXIF operations

manages MidCOM ACL Privileges with radio buttons

simpledate - date widget consisting of three dropdowns
simpleposition - Simple Geopositioning widget
table - disabled
video - Video/screenshot widget

[edit] Javascript Widgets

fckeditor - FCKeditor WYSIWYG HTML widget

Javascript-powered calendar selector

privilegecheckbox - manages MidCOM ACL Privileges with checkboxes

Widget for managing tabular data

TinyMCE WYSIWYG HTML editor

universalchooser - search-based selector

[edit] AJAX widgets

search-based selection field with creation support

composite - for creating multiple entries
privilegeselection - for managing MidCOM ACL privileges
sortable - provides a sortable multiselect widget

[edit] Types

Datamanager2 supports a number of types (those were called datatypes in DM1), each of which is defined is a class in the package midcom.helper.datamanager2.

blobs - files
boolean
captcha
composite - tabular data
date
image
images
mnrelation - M:N relations
number
parameters
password
photo
privilege - MidCOM ACL management
privilegeset
select
table - disabled
tags - net.nemein.tag objects
text - text based inputs. Uses HTMLPurifier for input validation
unixdate

[edit] Weblinks

http://www.midgard-project.org/documentation/midcom-helper-datamanager2/
Personal tools