plumpss/documents
Composer 安装命令:
composer require plumpss/documents
包简介
SilverStripe module for attaching documents to pages.
README 文档
README
Adds document upload support for pages.
Usage
Install via Composer (plumpss/documents), as a Git submodule or download the repo and export into a directory within your project.
Add the DocumentsPageExtension to any Page classes you want documents to be uploaded to. E.g. to add to all pages:
Page
extensions:
- DocumentsPageExtension
Remember to run dev/build to update the database after enabling the extension.
The extension adds a 'Documents' tab in the CMS with a sortable grid field of documents that can be added to.
Documents are added as a has_many so can be accessed in PHP as $page->Documents() and in templates as $Documents.
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-07-31