studiobonito/silverstripe-publishable

This package is abandoned and no longer maintained. The author suggests using the heyday/silverstripe-versioneddataobjects package instead.

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

Maintainers

Package info

github.com/studiobonito/silverstripe-publishable

Type:silverstripe-module

pkg:composer/studiobonito/silverstripe-publishable

Statistics

Installs: 71

Dependents: 0

Suggesters: 0

Stars: 7

Open Issues: 4

1.3.1 2015-08-28 10:21 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:23:45 UTC


README

This SilverStripe module is depreciated please consider using the silverstripe-versioneddataobjects module instead.

Publishable Module

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());