2017 © Pedro Peláez
 

silverstripe-module silverstripe-gridfielddetailformaddnew

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

image

webbuilders-group/silverstripe-gridfielddetailformaddnew

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

  • Friday, June 29, 2018
  • by WebbuildersGroup
  • Repository
  • 3 Watchers
  • 4 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 7 Versions
  • 3 % Grown

The README.md

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., (*1)

Maintainer Contact

Ryan McLaren (Nickname: IOTI) , (*2)

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, (*3)

 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., (*4)

$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., (*5)

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

The Versions

29/06 2018

dev-master

9999999-dev

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe gridfield

30/10 2013

0.2.0

0.2.0.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe gridfield

30/10 2013

3.0.x-dev

3.0.9999999.9999999-dev

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe gridfield

30/10 2013

0.1.3

0.1.3.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe gridfield

21/10 2013

0.1.2

0.1.2.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe gridfield

09/09 2013

0.1.1

0.1.1.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe gridfield

13/02 2013

0.1.0

0.1.0.0

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

  Sources   Download

The Requires

 

silverstripe gridfield