silverstripe-gridfield-betterbuttons
silverstripe-gridfield-betterbuttons copied to clipboard
Adds new form actions and buttons to the GridField detail form
This seems to be due to better buttons - see https://github.com/silverstripe/silverstripe-userforms/issues/805
Currently, when you click a button under the "Versioned" group of buttons, you get absolutely no feedback at all, **even though** it _actually is_ doing something.  **Expected result:** As...
SilverStripe\ORM\Versioning\Versioned has moved to SilverStripe\Versioned\Versioned. DataModel has been removed from SS4.
Example code: ``` public function getBetterButtonsActions() { $fields = parent::getBetterButtonsActions(); $my_action = BetterButtonCustomAction::create('MyAction', 'My Action'); $my_action = $my_action->performDisabledTransformation(); $fields->push($my_action); return $fields; } ``` The button appears to be still clickable....
Various critical and non critical fixes for ss4.1
So I use a BetterButtonNestedForm and when I open it via a button, make some changes to the field values and submit the form, my custom action gets executed correctly...
 We are using SS4.1.1 AFAIK and 2.x-dev
In a normal data object one can have a function such as: ```php public function getBetterButtonsActions() { return FieldList::create(); } ``` to clear all action buttons in the grid field...
SilverStripe 4.1 seems to want javascript/css to live in resources/betterbuttons (fysically public/resources/betterbuttons), unless the path is set from the site root, ~~so this seems to fix that:~~ ~~_config.php~~ ~~use \SilverStripe\Control\Director;~~...