2017 © Pedro Peláez
 

silverstripe-module gridfielddetailformwithsearch

GridFieldDetailForm that has a search sidebar always visible

image

silverstripe/gridfielddetailformwithsearch

GridFieldDetailForm that has a search sidebar always visible

  • Wednesday, July 12, 2017
  • by chillu
  • Repository
  • 5 Watchers
  • 5 Stars
  • 2,806 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Grid Field Detail Form that has a search sidebar always visible. Note that we just need to modify the item_request, not the whole GridFieldDetailForm. Usage:, (*1)

class MyDataObjectAdmin extends ModelAdmin {

    static $managed_models = array(
        'MyDataObject'
    );

    public function getEditForm($id = null, $fields = null) {
        $form = parent::getEditForm($id, $fields);
        $config = $form->Fields()->first()->getConfig();
        $config->getComponentByType('GridFieldDetailForm')
                ->setItemRequestClass('GridFieldDetailFormWithSearch_ItemRequest')
                ->setTemplate('GridFieldDetailFormWithSearch');
        return $form;
    }

}

The Versions

12/07 2017

dev-master

9999999-dev

GridFieldDetailForm that has a search sidebar always visible

  Sources   Download

BSD-3-Clause

The Requires

 

search silverstripe gridfield sidebar detail detailform