Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.26 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.26 KB

SilverStripe 3.1 DataObject Preview

Activates some of the new Silverstripe 3.1 side-by-side preview functionality for use with DataObjects.

screenshot_plugin

Requirements

  • Silverstripe 3.1

Install

  1. Install the module into the SilverStripe root.
  2. Create a DataObject that extends PreviewableDataObject.
  3. Create a ModelAdmin that manages your DataObject.
  4. Create a Page + Page Controller to render your DataObject preview.
  5. Create a Template for your Preview Page.
  6. 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.