Download the PHP package nathancox/versionedgridrows without Composer
On this page you can find all versions of the php package nathancox/versionedgridrows. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nathancox/versionedgridrows
More information about nathancox/versionedgridrows
Files in nathancox/versionedgridrows
Package versionedgridrows
Short Description A SilverStripe extension to mark gridfield rows for versioned objects as draft or modified
License BSD-3-Clause
Homepage https://github.com/nathancox/silverstripe-versionedgridrows
Informations about the package versionedgridrows
SilverStripe VersionedGridRows
This module extends GridField to add some styles and labels for showing the published state of versioned objects.
Maintainer Contacts
Nathan Cox ([email protected])
Requirements
- SilverStripe 3.1+
Documentation
Installation Instructions
With composer:
Usage Overview
Configuration via config.yml
:
Options for the mode setting:
mode: 'component'
Only add row styles to GridFields with the VersionGridRows component added to them. This is done like any other component:
The constructor argument ("Title") specifies the name of the column the "draft" or "modified" flags will be appended to. Leave blank to not automatically append the flags.
mode: 'always'
Styles will be added to all GridFields that managed versioned objects. If you want to add flags you need to do it manually with something like this:
mode: 'config'
Specify a list of classes that styles will be added to.
You will have to add version status flags manually as shown above.