Download the PHP package michael.caruana/hasonefield without Composer
On this page you can find all versions of the php package michael.caruana/hasonefield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download michael.caruana/hasonefield
More information about michael.caruana/hasonefield
Files in michael.caruana/hasonefield
Download michael.caruana/hasonefield
More information about michael.caruana/hasonefield
Files in michael.caruana/hasonefield
Vendor michael.caruana
Package hasonefield
Short Description Easy to manage has_one relations with familiar link/unlink feature.
License MIT
Package hasonefield
Short Description Easy to manage has_one relations with familiar link/unlink feature.
License MIT
Please rate this library. Is it a good library?
Informations about the package hasonefield
HasOneField
Easy to manage has_one relations with familiar link/unlink feature.
Introduction
Adds a Has-One type of field to allow you to create, link, unlink, delete, or edit DataObjects in a has_one relationship. Based on a gridfield, but without the fluff.
- "Create" button takes you to a new page, and from there the parent is updated with the new relation when the new object is saved.
- Gridfield-style "Link Existing" field is used to search and select existing objects, and happens inline/ajax.
- If there already is a relation, clicking on the data or the gridfield-style "Edit" icon take you to the usual edit page.
- Gridfield-style "Unlink" icon happens inline/ajax and writes the parent only.
- Gridfield-style "Delete" icon also happens inline/ajax with the "Are you sure" prompt.
Requirements
- Silverstripe 3x.
Installation
composer install
Manipulations
- Access the internal gridfield using
$gridfield = $field->FieldList()->first();. - Set the display fields using
$gridfield->setDisplayFields($someArray);.
All versions of hasonefield with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.3
silverstripe/framework Version ~3.0
symbiote/silverstripe-gridfieldextensions Version ~1.0
silverstripe/framework Version ~3.0
symbiote/silverstripe-gridfieldextensions Version ~1.0
The package michael.caruana/hasonefield contains the following files
Loading the files please wait ...