2017 © Pedro Peláez
 

silverstripe-module silverstripe-dataobject-preview

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

image

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

The README.md

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.

screenshot_plugin, (*2)

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.

The Versions

15/01 2016

dev-master

9999999-dev https://github.com/jotham/silverstripe-dataobject-preview

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

  Sources   Download

MIT

The Requires

 

by Jotham Read

silverstripe preview dataobject