定制 taitava/silverstripe-changeablelasteditedvalue 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

taitava/silverstripe-changeablelasteditedvalue

Composer 安装命令:

composer require 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,

README 文档

README

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:

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!

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:

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.

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.

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固