das-l/contao-last-editor-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

das-l/contao-last-editor-bundle

最新稳定版本:1.0.0

Composer 安装命令:

composer require das-l/contao-last-editor-bundle

包简介

Stores and shows which backend user last edited an item. The tables for which this is recorded can be configured.

README 文档

README

Stores and shows which backend user last edited an item. The tables for which this is recorded can be configured.

Use case

How can this be useful when versioning already exists? By default, versions are purged after 90 days. If you need to know which user last edited something more than 90 days ago, you can't get that information. Technically, to avoid this, you can set the versionPeriod config to something huge, or remove the purge task by replacing the PurgeExpiredDataCron and removing the purge config in TL_PURGE. However, if you have a quite frequently edited site, you end up with a very large amount of data over time, which to avoid the purge exists in the first place.

If all you need to know is which user last edited something, rather than the entire edit history, this extension is for you. It does not replace Contao's versioning in any way, it just adds the last editor as a permanent piece of information.

Setup and Usage

Install the extension and run database migrations:

composer require das-l/contao-last-editor-bundle
vendor/bin/contao-console contao:migrate

A migration is included that will copy the most recent editor from existing version information.

From now on, any time an item is saved, the editing user is stored. To view this information, use the "show details" feature ("info" icon in default list views).

Config

By default, the last editor is stored for the tables tl_page, tl_article, and tl_content. You can customize this in your config:

contao_last_editor:
    tables: [ tl_page, tl_content, tl_news ]

After changing the config, you'll need to run migrations again:

vendor/bin/contao-console cache:clear
vendor/bin/contao-console contao:migrate

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2025-07-02