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.

dev-master 2016-01-15 04:40 UTC

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.

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.