Download the PHP package bluehousegroup/silverstripe-data-object-version-viewer without Composer
On this page you can find all versions of the php package bluehousegroup/silverstripe-data-object-version-viewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bluehousegroup/silverstripe-data-object-version-viewer
More information about bluehousegroup/silverstripe-data-object-version-viewer
Files in bluehousegroup/silverstripe-data-object-version-viewer
Package silverstripe-data-object-version-viewer
Short Description Allows viewing of version history for data objects inside of the SilverStripe CMS
License BSD-3-Clause
Homepage https://github.com/bluehousegroup/silverstripe-data-object-version-viewer
Informations about the package silverstripe-data-object-version-viewer
Data Object Version Viewer
Install with Composer
composer require bluehousegroup/silverstripe-data-object-version-viewer
Usage
- Extend
silverstripe-versioneddataobjects
to add a 'History' button to a GridField or ModelAdmin - View, revert to, and publish a previous versions of a data object
Example code
The implementation is very similar to the versioneddataobjects module, on which this module depends.
Within your DataObject class
To use VersionedDataObject
records in a GridField, GridFieldDetailForm
needs to be replaced with VersionedRevertDODetailsForm
:
Versioned DataObjects in a ModelAdmin
Notes
This module is intended to be compatible with the betterbuttons module. Toward that end, it removes the betterbuttons's Versioning button group in order to keep in tact the buttons added by the versiondataobjects plug-in. This change affects only the forms configured with the VersionedRevertDODetailsForm extension.