jotham / silverstripe-dataobject-preview
This package is abandoned and no longer maintained.
No replacement package was suggested.
Activates some of the new Silverstripe 3.1 side-by-side preview functionality for use with DataObjects.
Package info
github.com/jotham/silverstripe-dataobject-preview
Type:silverstripe-module
pkg:composer/jotham/silverstripe-dataobject-preview
dev-master
2016-01-15 04:40 UTC
Requires
- silverstripe/cms: ~3.1
- silverstripe/framework: ~3.1
This package is not auto-updated.
Last update: 2020-03-02 04:41:28 UTC
README
Activates some of the new Silverstripe 3.1 side-by-side preview functionality for use with DataObjects.
Requirements
- Silverstripe 3.1
Install
- Install the module into the SilverStripe root.
- Create a DataObject that extends PreviewableDataObject.
- Create a ModelAdmin that manages your DataObject.
- Create a Page + Page Controller to render your DataObject preview.
- Create a Template for your Preview Page.
- Run /dev/build and ?flush=all
Troubleshooting
- Make sure your DataObject has defined $preview_page.
Todo
- Make an Extension so you don't have to migrate your existing DataObjects.
- Fix up Versioning.
