jinjie/ss4-duplicate-dataobject
最新稳定版本:v2.0.0
Composer 安装命令:
composer require jinjie/ss4-duplicate-dataobject
包简介
Adds a duplicate button to GridField in the CMS that enables duplicating of dataobjects
README 文档
README
Adds a duplicate button to GridField in the CMS that enables duplicating of dataobjects
Installation
composer require jinjie/ss4-duplicate-dataobject
Usage Example
This module uses the built in DataObject duplication.
See
- https://api.silverstripe.org/4/SilverStripe/ORM/DataObject.html#method_duplicate
- https://docs.silverstripe.org/en/4/developer_guides/model/relations/#cascading-duplications
// Add component on existing GridField $fields->fieldByName('Root.Main.MyGridField') ->getConfig() ->addComponent(new GridFieldDuplicateAction()); // Add component on new GridField $fields->push( GridField::create( 'MyGridField', 'MyGridField' )->addComponent(new GridFieldDuplicateAction()) );
Author
Developed by Jin Jie @ Swift DevLabs
统计信息
- 总下载量: 21.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-14