jotham / silverstripe-dataobject-preview
Activates some of the new Silverstripe 3.1 side-by-side preview functionality for use with DataObjects.
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 2
Open Issues: 2
Type:silverstripe-module
pkg:composer/jotham/silverstripe-dataobject-preview
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.
 
