Download the PHP package taitava/silverstripe-changeablelasteditedvalue without Composer
On this page you can find all versions of the php package taitava/silverstripe-changeablelasteditedvalue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download taitava/silverstripe-changeablelasteditedvalue
More information about taitava/silverstripe-changeablelasteditedvalue
Files in taitava/silverstripe-changeablelasteditedvalue
Package silverstripe-changeablelasteditedvalue
Short Description 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.
License MIT
Informations about the package silverstripe-changeablelasteditedvalue
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.
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.
You can also install this via composer:
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!
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:
From there you can also turn off the feature for the LastEdited field if you need to.
Maintainer Contact
Jarkko Linnanvirta posti (at) taitavasti (dot) fi (in English or in Finnish) www.taitavasti.fi (only in Finnish)
Requirements
SilverStripe 3.1.0 or greater. I have tested this only with 3.1.16.