hudhaifas / silverstripe-dataobject-manager
将任何 Silverstripe DataObject 包裹在页面中。
4.2.1
2019-09-26 16:32 UTC
This package is not auto-updated.
Last update: 2024-09-22 05:28:02 UTC
README
DataObject Manager 是一个标准的 Frontend 包装器,用于特定与页面无关的数据对象实例,结果为列出所有、搜索、显示对象和编辑对象。
实时演示
屏幕截图
特性
- 管理一个与页面无关的特定 DataObject。
- 创建一个标准页面来显示、编辑、列出和搜索特定 DataObject 类型。
- 将富文本片段包含到对象显示页面。
- 通过使用 AJAX 在页面布局完全加载后加载页面内容来减少响应时间。
- 与 Google Custom Search 兼容。
- 易于自定义页面布局。
限制
- 为每个 DataObject 创建一个页面类。
- 仅可编辑 $db 和 $has_one 字段。
待办事项
- 编辑 many_many 关系字段。
- 从前端添加创建新功能。
- 期待您的贡献
用法
需求
- SilverStripe 框架 4.x
- SilverStripe CMS 4.x
- jQuery 3.x
- Bootstrap 4.x
安装
- 通过 composer 安装模块:
$ composer require hudhaifas/silverstripe-dataobject-manager
- 运行 dev/build
用法
ManageableDataObject
- 创建/调整一个类以扩展 DataObject 并实现 ManageableDataObject 接口,以提供以下所需数据以渲染您的对象
- 创建/调整页面以扩展 DataObjectPage
许可证
MIT License
Copyright (c) 2016 Hudhaifa Shatnawi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without
limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.