silverstripe-module silverstripe-dataobject-preview
Activates some of the new Silverstripe 3.1 side-by-side preview functionality for use with DataObjects.
jotham/silverstripe-dataobject-preview
Activates some of the new Silverstripe 3.1 side-by-side preview functionality for use with DataObjects.
- Friday, January 15, 2016
- by jotham
- Repository
- 2 Watchers
- 5 Stars
- 37 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 2 Open issues
- 1 Versions
- 0 % Grown
SilverStripe 3.1 DataObject Preview
Activates some of the new Silverstripe 3.1 side-by-side preview functionality for use with DataObjects., (*1)
- http://doc.silverstripe.org/framework/en/reference/preview.
, (*2)
Requirements
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.