Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

jotham/silverstripe-dataobject-preview

Repository files navigation

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.

About

Silverstripe 3.1 DataObject CMS Preview

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published