unclecheese / silverstripe-gridfield-betterbuttons

Adds new form actions and buttons to the GridField detail form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project level config.yml not removing "Save" button

neilcreagh opened this issue · comments

In my project level config.yml file I've added the following

BetterButtonsActions:
  create:
    BetterButton_Save: false
    BetterButton_SaveAndClose: true
    BetterButton_SaveAndAdd: true

  edit:
    BetterButton_Save: false
    BetterButton_SaveAndClose: true
    BetterButton_SaveAndNext: true

This adds the new buttons for me but doesn't remove the "Save" button.

I know I can simply remove the lines from the betterbuttons config.yml but then this reverts if I update

Is it just the Save button, or can you not override the config at all? If you can't override anything, then maybe you haven't set up the proper After: in your config?

Yes that was it - my apologies. I'll close this issue.