silverstripe/cmsworkflow
Composer 安装命令:
composer require silverstripe/cmsworkflow
包简介
Two- and three-step approval workflow for page content in SilverStripe CMS
关键字:
README 文档
README
CMS Workflow Module
Please note: this module is no longer actively maintained.
Requirements
- SilverStripe 2.4 or newer
legacydatetimefieldsmodule (see http://silverstripe.org/legacydatetimefields-module)
Installation
You need to choose an 'approval path'. This details the actual process a request goes through before it gets published to the live site.
There are two approval paths supplied: "Two Step" and "Three Step".
Two Step
Author submits a request. Publisher approves it change is pushed live immediately.
This workflow is automatically set up for you and doesn't need any configuration.
Three Step
Author submits a request. Approver approves it. Publisher publishes it at a later date.
Attach the following decorators in your mysite/_config.php:
// remove two-step decorators
Object::remove_extension('WorkflowRequest', 'WorkflowTwoStepRequest');
Object::remove_extension('SiteTree', 'SiteTreeCMSTwoStepWorkflow');
Object::remove_extension('SiteConfig', 'SiteConfigTwoStepWorkflow');
// add three-step decorators
Object::add_extension('WorkflowRequest', 'WorkflowThreeStepRequest');
Object::add_extension('SiteTree', 'SiteTreeCMSThreeStepWorkflow');
Object::add_extension('LeftAndMain', 'LeftAndMainCMSThreeStepWorkflow');
Object::add_extension('SiteConfig', 'SiteConfigThreeStepWorkflow');
Refresh your database schema through http://<your-host>/dev/build.
Usage
Based on your permission levels, authors in the CMS will see different actions on a page, and a new "Workflow" tab listing open requests.
Popup alerts
You can allow Administrator users to Publish without giving a comment. by placing the following in your mysite/_config.php file: This will disable the popup for this situation.
LeftAndMainCMSWorkflow::set_prompt_admin_for_comments(false);
Email alerts
Email alerts are configurable by the developer.
The following line sets a config option
WorkflowRequest::set_alert(CLASS, EVENT, GROUP, NOTIFY);
CLASS is one of either WorkflowPublicationRequest or WorkflowDeletionRequest
EVENT is one of
- request
- publish (3 step only)
- approve
- deny
- cancel
- comment
GROUP is either author or publisher or approver
NOTIFY is either true or false
Customising strings via translation
The cmsworkflow uses the translation facilities of SilverStripe extensively. This allows us to support the module in different languages, with many languages available out of the box.
If you want to customise these strings further, there is another module called customtranslation that allows you to override the strings provided in the lang files, without changing the lang files. The module can override strings across the whole site, not just cmsworkflow. customtranslation will be supported for SilverStripe 2.4.1 and up.
silverstripe/cmsworkflow 适用场景与选型建议
silverstripe/cmsworkflow 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 226 次下载、GitHub Stars 达 25, 最近一次更新时间为 2013 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「workflow」 「silverstripe」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 silverstripe/cmsworkflow 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 silverstripe/cmsworkflow 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 silverstripe/cmsworkflow 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Workflow for NetCommons Plugin
Workflow logger
Analytics chooser extensions for site settings.
Approval Workflow Engine for Filament
Operational approvals engine for Laravel applications.
统计信息
- 总下载量: 226
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 25
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2013-01-03