Adds the ability to create a new gridField item directly from the edit form


Repository: https://github.com/webbuilders-group/GridFieldDetailFormAddNew

Packagist: http://packagist.org/packages/webbuilders-group/silverstripe-gridfielddetailformaddnew

Issues: https://github.com/webbuilders-group/GridFieldDetailFormAddNew/issues

Authors: Ryan McLaren

4 1 111


Readme

GridFieldDetailFormAddNew

Adds the ability to create a new gridField item directly from the edit form. Use the 3.0 branch for compatability with SilverStripe 3.0.

Maintainer Contact

Ryan McLaren (Nickname: IOTI) <ryan (at) webbuildersgroup (dot) com>

Requirements

  • SilverStripe 3.1+

Installation & Documentation

  • Download and copy folder to SilverStripe root directory.
  • Run ?flush=all

By default the "add new" button is added to all detail forms. You can disable this functionality in your config.yml using

 GridFieldAddNewExtension:
   use_data_extension: false

If you instead prefer to add the button manually to a detail form use the addComponent function to add the GridFieldDetailFormAddNew component.

$config = new GridFieldConfig_Base();
$config->addComponent(new GridFieldDetailFormAddNew());

When working with one of the pre-configured GridFieldConfigs you must first remove the default GridFieldDetailForm component and then add the GridFieldDetailFormAddNew component.

$config = new GridFieldConfig_RecordEditor();
$config->removeComponentsByType('GridFieldDetailForm');
$config->addComponent(new GridFieldDetailFormAddNew());

Versions

dev-master
2018-48-29 2458299: UTC
BSD-3-Clause

Install composer require webbuilders-group/silverstripe-gridfielddetailformaddnew dev-master

Manual Install: Download

Requires
  • silverstripe/framework: ~3.1
  • composer/installers: *
3.0.x-dev
2013-24-30 2456596: UTC
BSD-3-Clause

Install composer require webbuilders-group/silverstripe-gridfielddetailformaddnew 3.0.x-dev

Manual Install: Download

Requires
  • silverstripe/framework: 3.0.*
  • composer/installers: *
0.2.0
2013-26-30 2456596: UTC
BSD-3-Clause

Install composer require webbuilders-group/silverstripe-gridfielddetailformaddnew 0.2.0

Manual Install: Download

Requires
  • silverstripe/framework: 3.1.*
  • composer/installers: *
0.1.3
2013-24-30 2456596: UTC
BSD-3-Clause

Install composer require webbuilders-group/silverstripe-gridfielddetailformaddnew 0.1.3

Manual Install: Download

Requires
  • silverstripe/framework: 3.0.*
  • composer/installers: *
0.1.2
2013-35-21 2456587: UTC
BSD-3-Clause

Install composer require webbuilders-group/silverstripe-gridfielddetailformaddnew 0.1.2

Manual Install: Download

Requires
  • silverstripe/framework: 3.*
  • composer/installers: *
0.1.1
2013-10-9 2456545: UTC
BSD-3-Clause

Install composer require webbuilders-group/silverstripe-gridfielddetailformaddnew 0.1.1

Manual Install: Download

Requires
  • silverstripe/framework: 3.*
  • composer/installers: *
0.1.0
2013-14-13 2456337: UTC
Unknown

Install composer require webbuilders-group/silverstripe-gridfielddetailformaddnew 0.1.0

Manual Install: Download

Requires
  • silverstripe/framework: 3.*
  • composer/installers: *