2017 © Pedro Peláez
 

silverstripe-module silverstripe-changeablelasteditedvalue

By default SilverStripe 3.1 overwrites the LastEdited field every time you write DataObjects to the database. This module allows you to keep your changes in the LastEdited field on any DataObject. It does not prevent the LastEdited field from getting updated when no manual edits has been done to it, so the module should not interfere with normal writing, only when you have explicitly set your own value to the LastEdited field.

image

taitava/silverstripe-changeablelasteditedvalue

By default SilverStripe 3.1 overwrites the LastEdited field every time you write DataObjects to the database. This module allows you to keep your changes in the LastEdited field on any DataObject. It does not prevent the LastEdited field from getting updated when no manual edits has been done to it, so the module should not interfere with normal writing, only when you have explicitly set your own value to the LastEdited field.

  • Tuesday, January 19, 2016
  • by taitava
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

silverstripe-changeablelasteditedvalue

By default SilverStripe 3.1 overwrites the LastEdited field every time you write DataObjects to the database. This module allows you to keep your changes in the LastEdited field on any DataObject. It does not prevent the LastEdited field from getting updated when no manual edits has been done to it, so the module should not interfere with normal writing, only when you have explicitly set your own value to the LastEdited field., (*1)

Installation and configuration

Just the regular installation process: put the folder "changeablelasteditedvalue" to your project's root folder and goto the url /dev/build?flush=all in your browser., (*2)

You can also install this via composer:, (*3)

composer require "taitava/siverstripe-changeablelasteditedvalue:*"

The module works automatically for all objects inherited from DataObject. So just put the module in place and your modifications to the LastEdited field will start to work like magic!, (*4)

You can also use this module for the PublishDate field on Versioned objects. This needs to be enabled in the YML config in mysite/_config/changeablelasteditedvalue.yml:, (*5)

ChangeableLastEditedValue:
  affect_publish_date: true #default: false
  affect_last_edited: true #default: true

From there you can also turn off the feature for the LastEdited field if you need to., (*6)

Maintainer Contact

Jarkko Linnanvirta posti (at) taitavasti (dot) fi (in English or in Finnish) www.taitavasti.fi (only in Finnish), (*7)

Requirements

SilverStripe 3.1.0 or greater. I have tested this only with 3.1.16., (*8)

The Versions

19/01 2016

dev-master

9999999-dev

By default SilverStripe 3.1 overwrites the LastEdited field every time you write DataObjects to the database. This module allows you to keep your changes in the LastEdited field on any DataObject. It does not prevent the LastEdited field from getting updated when no manual edits has been done to it, so the module should not interfere with normal writing, only when you have explicitly set your own value to the LastEdited field.

  Sources   Download

MIT

The Requires

 

silverstripe lastedited

19/01 2016

1.1.0

1.1.0.0

By default SilverStripe 3.1 overwrites the LastEdited field every time you write DataObjects to the database. This module allows you to keep your changes in the LastEdited field on any DataObject. It does not prevent the LastEdited field from getting updated when no manual edits has been done to it, so the module should not interfere with normal writing, only when you have explicitly set your own value to the LastEdited field.

  Sources   Download

MIT

The Requires

 

silverstripe lastedited

21/12 2015

1.0

1.0.0.0

By default SilverStripe 3.1 overwrites the LastEdited field every time you write DataObjects to the database. This module allows you to keep your changes in the LastEdited field on any DataObject. It does not prevent the LastEdited field from getting updated when no manual edits has been done to it, so the module should not interfere with normal writing, only when you have explicitly set your own value to the LastEdited field.

  Sources   Download

MIT

The Requires

 

silverstripe lastedited