Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Oct 3, 2019
1 parent 1920836 commit bb62de8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ Simply replace your calls from delete to softDelete.
New extensions hooks are provided to avoid side effects (onBeforeSoftDelete, onAfterSoftDelete).
These are ideals if you have child records that need to be soft deleted with their parent.

Config options
==================

SilverStripe\Admin\ModelAdmin:
softdelete_from_list: true
softdelete_from_list_exclude: []
extensions:
- SoftDeleteModelAdmin
SilverStripe\Admin\SecurityAdmin:
softdelete_from_list: true
softdelete_from_list_exclude: []
extensions:
- SoftDeleteSecurityAdmin

You can configure:
- softdelete_from_list: show delete button on a line. Enabled by default.
- softdelete_from_list_exclude: hide the delete button for these classes even if enabled globally

Prevent accidental deletion
==================

Expand Down

0 comments on commit bb62de8

Please sign in to comment.