das-l/contao-last-editor-bundle
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
das-l/contao-last-editor-bundle 适用场景与选型建议
das-l/contao-last-editor-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 07 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 das-l/contao-last-editor-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 das-l/contao-last-editor-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2025-07-02