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 58


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
2016-03-23 12:32pm UTC
BSD-3-Clause

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

Manual Install: Download

Requires
  • composer/installers: *
  • silverstripe/framework: 3.1.*
3.0.x-dev
2013-10-30 2:24pm 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-10-30 2:26pm 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-10-30 2:24pm 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-10-21 2:35pm 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-09-09 1:10pm 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-02-13 3:14pm UTC
Unknown

Install composer require webbuilders-group/silverstripe-gridfielddetailformaddnew 0.1.0

Manual Install: Download

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