2017 © Pedro Peláez
 

silverstripe-module versionedgridrows

A SilverStripe extension to mark gridfield rows for versioned objects as draft or modified

image

nathancox/versionedgridrows

A SilverStripe extension to mark gridfield rows for versioned objects as draft or modified

  • Friday, September 1, 2017
  • by nathancox
  • Repository
  • 1 Watchers
  • 1 Stars
  • 255 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

SilverStripe VersionedGridRows

This module extends GridField to add some styles and labels for showing the published state of versioned objects., (*1)

screenshot, (*2)

Maintainer Contacts

Nathan Cox (me@nathan.net.nz), (*3)

Requirements

  • SilverStripe 3.1+

Documentation

GitHub, (*4)

Installation Instructions

With composer:, (*5)

composer require nathancox/versionedgridrows

Usage Overview

Configuration via config.yml:, (*6)

VersionedGridRows:
  mode: 'component'         # can be "component", "config" or "always"
  show_published: false     # set to true to show a flag on published items as well

Options for the mode setting:, (*7)

mode: 'component', (*8)

Only add row styles to GridFields with the VersionGridRows component added to them. This is done like any other component:, (*9)

$gridFieldConfig->addComponent(new VersionedGridRows('Title'));

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., (*10)

mode: 'always', (*11)

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:, (*12)

$summary_fields = array(
    'VersionedTitle' => 'Title'
);

...

public function VersionedTitle()
{
    return VersionedGridRows::get_column_content($this, $this->Title);
}

mode: 'config', (*13)

Specify a list of classes that styles will be added to., (*14)

VersionedGridRow:
  mode: 'config'
  classes:
    - Page
    - StaffMember
    - HomepageSlide

You will have to add version status flags manually as shown above., (*15)

Known Issues

Issue Tracker, (*16)

The Versions

01/09 2017

v2.x-dev

2.9999999.9999999.9999999-dev https://github.com/nathancox/silverstripe-versionedgridrows

A SilverStripe extension to mark gridfield rows for versioned objects as draft or modified

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

cms silverstripe gridfield versioned

25/07 2017

dev-master

9999999-dev https://github.com/nathancox/silverstripe-versionedgridrows

A SilverStripe extension to mark gridfield rows for versioned objects as draft or modified

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

cms silverstripe gridfield versioned

25/07 2017

v1.1.0

1.1.0.0 https://github.com/nathancox/silverstripe-versionedgridrows

A SilverStripe extension to mark gridfield rows for versioned objects as draft or modified

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

cms silverstripe gridfield versioned

25/07 2017

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/nathancox/silverstripe-versionedgridrows

A SilverStripe extension to mark gridfield rows for versioned objects as draft or modified

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

cms silverstripe gridfield versioned

25/07 2017

V1.0.1

1.0.1.0 https://github.com/nathancox/silverstripe-versionedgridrows

A SilverStripe extension to mark gridfield rows for versioned objects as draft or modified

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

cms silverstripe gridfield versioned

25/07 2017

v1.0

1.0.0.0 https://github.com/nathancox/silverstripe-versionedgridrows

A SilverStripe extension to mark gridfield rows for versioned objects as draft or modified

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

cms silverstripe gridfield versioned