studiobonito/silverstripe-publishable

Publishable is a module for Silverstripe that provides a number of extensions that make enabling and managing versioning for DataObjects much simpler.

Installs: 59

Dependents: 0

Stars: 6

Watchers: 2

Forks: 1

Open Issues: 1

Language: PHP

1.0.3 2013-05-20 10:22 UTC

README

Overview

Publishable is a module for Silverstripe that provides a number of extensions that make enabling and managing versioning for DataObjects much simpler.

Requirements

SilverStripe 3.1 or newer.

Installation Instructions

Copy the 'publishable' folder to the root of your SilverStripe installation.

Usage Overview

Add the publishing actions to ExampleObject and make it versionable

ExampleObject::add_extension('Versioned("Stage", "Live")');
ExampleObject::add_extension('Publishable');

Replace GridField with PublishableGridField on ExampleModelAdmin

ExampleModelAdmin::add_extension('PublishableModelAdmin');

Create a new PublishableGridField to display the Example components

$publishableGridField = new PublishableGridField('Example', 'Example', $this->Example());