Download the PHP package silbinarywolf/multirecordfield without Composer
On this page you can find all versions of the php package silbinarywolf/multirecordfield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download silbinarywolf/multirecordfield
More information about silbinarywolf/multirecordfield
Files in silbinarywolf/multirecordfield
Package multirecordfield
Short Description A module for editing multiple records on a backend or frontend form.
License BSD-3-Clause
Informations about the package multirecordfield
Multi Record Field
A drop-in replacement for GridField. Allows creating and editing multiple records in a backend or frontend form.
Supports
- SilverStripe 3.2 and up
- PHP 5.4+
- Display Logic
- Dropzone Module
- Quick Add New Module
Example Use
MultiRecordField Nesting
The MultiRecordField
supports nesting of other
MultiRecordField
s. When the field detects a MultiRecordField
in the set of fields to edit, that field is added as another nested toggle
field inside the parent set of fields for editing.
Transform existing GridField into MultiRecordField
You may want to retain a few configurations made to the GridField that MultiRecordField supports.
In that case, you'll want to utilize the MultiRecordTransformation
class.
This will ensure the properties on GridFieldExtensions GridFieldAddNewMultiClass
will carry across.
Custom fields
The MultiRecordField
uses the output of getCMSFields
when building
the fieldlist used for editing. To provide an alternate set of fields, define
a getMultiRecordFields
method that returns a FieldList
object.
Additionally, the MultiRecordField
calls the updateMultiEditFields
extension hook on the record being edited to allow extensions a chance to
change the fields.
Screenshots
To-Do
Unit Tests Backend:
- Ensure all form data is restored correctly when a Form $Validator returns false
- Ensure Display Logic works cleanly with this module.
- Ensure permission checking works as expected. Frontend:
- Test sorting, ensure correct hidden fields are updated
- Test add button and AJAX response.
- Test error messages / display
Maintainers
- Jake Bentvelzen [email protected]