jotham/silverstripe-dataobject-preview
Composer 安装命令:
composer require jotham/silverstripe-dataobject-preview
包简介
Activates some of the new Silverstripe 3.1 side-by-side preview functionality for use with DataObjects.
README 文档
README
Activates some of the new Silverstripe 3.1 side-by-side preview functionality for use with DataObjects.
Requirements
- Silverstripe 3.1
Install
- Install the module into the SilverStripe root.
- Create a DataObject that extends PreviewableDataObject.
- Create a ModelAdmin that manages your DataObject.
- Create a Page + Page Controller to render your DataObject preview.
- Create a Template for your Preview Page.
- Run /dev/build and ?flush=all
Troubleshooting
- Make sure your DataObject has defined $preview_page.
Todo
- Make an Extension so you don't have to migrate your existing DataObjects.
- Fix up Versioning.
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-03
