2017 © Pedro Peláez
 

silverstripe-module silverstripe-version-history

Provides a basic audit trail interface for Versioned objects

image

jonom/silverstripe-version-history

Provides a basic audit trail interface for Versioned objects

  • Tuesday, November 1, 2016
  • by Jono M
  • Repository
  • 1 Watchers
  • 6 Stars
  • 2,253 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 9 Open issues
  • 2 Versions
  • 49 % Grown

The README.md

Version History for SilverStripe CMS

This ports some of the functionality from the History tab of the page editing interface in SilverStripe and makes it available for other classes., (*1)

history-tab.png, (*2)

Requirements

SilverStripe 3.1+ (3.4 tested), (*3)

Installation

Composer (best practice)

Packagist listing and installation instructions, (*4)

Manually

I promise it's worth your time to learn how to use Composer. If painless updating isn't your thing though you can download and extract this project, rename the module folder 'version-history', place it in your project root and run a dev/build?flush=1., (*5)

How to use

Just apply the VersionHistoryExtension extension to your class (which also has the Versioned extension) and a History tab will be added to the CMS fields., (*6)

MyClass:
  extensions:
    - Versioned("Stage")
    - VersionHistoryExtension

This module currently doesn't distinguish between staged and published versions, nor does it support rolling back to a previous version, because I'm using it simply to track changes. If you want to expand the functionality though, feel free to open a pull request!, (*7)

Hide some fields from the history tab

If you want to hide some fields from the history tab, you can set the version_history_hidden_fields configuration attribute on your DataObject. The following YML configuration applies the VersionHistoryExtenion to the Member DataObject, but hides sensitive information like the Salt and Password fields., (*8)

Member:
  extensions:
    - Versioned("Stage")
    - VersionHistoryExtension
  version_history_hidden_fields:
    - Password
    - PasswordEncryption
    - Salt

Maintainer contact

Jono Menz, (*9)

Sponsorship

If you want to boost morale of the maintainer you're welcome to make a small monthly donation through GitHub, or a one time donation through PayPal. ❤️ Thank you!, (*10)

Please also feel free to get in touch if you want to hire the maintainer to develop a new feature, or discuss another opportunity., (*11)

The Versions

01/11 2016

dev-master

9999999-dev

Provides a basic audit trail interface for Versioned objects

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe versioned audit trail version history

01/11 2016

v1.0

1.0.0.0

Provides a basic audit trail interface for Versioned objects

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe versioned audit trail version history