undefinedoffset/silverstripe-advancedwidgeteditor
Composer 安装命令:
composer require undefinedoffset/silverstripe-advancedwidgeteditor
包简介
Replaces the Widget Editor to enable support for advanced form fields such as UploadField
关键字:
README 文档
README
Replaces the Widget Editor to enable support for advanced form fields such as SilverStripe\AssetAdmin\Forms\UploadField
Requirements
- SilverStripe ~4.6 | ~5.0
- SilverStripe Widgets ~2.0 | ~3.0
Installation
composer require undefinedoffset/silverstripe-advancedwidgeteditor
Usage
To use advanced widget editor over the default SilverStripe widgets editor you need to change your extension from WidgetPageExtension to use AdvancedWidgetPageExtension instead.
Page: extensions: - 'UndefinedOffset\AdvancedWidgetEditor\Extensions\AdvancedWidgetPageExtension'
Controlling Available Widgets per-class
To control widgets on a per-class host class (class which the Advanced Widget Editor is controlling the widget area for), you can use the config property available_widgets for example:
Page: available_widgets: - "RSSWidget" - "MyExampleWidget" SilverStripe\Blog\Model\Blog: available_widgets: - 'SilverStripe\Blog\Widgets\BlogArchiveWidget' - 'SilverStripe\Blog\Widgets\BlogCategoriesWidget' - 'SilverStripe\Blog\Widgets\BlogTagsCloudWidget' - 'SilverStripe\Blog\Widgets\BlogRecentPostsWidget'
In the case of the above example the Page class and it's decedent classes will have the RSSWidget and MyExampleWidget available. Where the SilverStripe\Blog\Model\Blog class and it's decendent classes will also have ArchiveWidget, BlogManagementWidget, etc along side the RSSWidget and MyExampleWidget.
You can also restrict widgets from decedent classes using the example above say we want to restrict the SilverStripe\Blog\Model\Blog class to not have access to the RSSWidget but still have Page be allowed to use that widget, for example you can use the bellow:
SilverStripe\Blog\Model\Blog: restricted_widgets: - "RSSWidget"
Reporting an issue
When you're reporting an issue please ensure you specify what version of SilverStripe you are using. Also be sure to include any JavaScript or PHP errors you receive, for PHP errors please ensure you include the full stack trace. Also please include how you produced the issue. You may also be asked to provide some of the classes to aid in re-producing the issue. Stick with the issue, remember that you seen the issue not the maintainer of the module so it may take allot of questions to arrive at a fix or answer.
undefinedoffset/silverstripe-advancedwidgeteditor 适用场景与选型建议
undefinedoffset/silverstripe-advancedwidgeteditor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.26k 次下载、GitHub Stars 达 9, 最近一次更新时间为 2014 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「blog」 「silverstripe」 「widgets」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 undefinedoffset/silverstripe-advancedwidgeteditor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 undefinedoffset/silverstripe-advancedwidgeteditor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 undefinedoffset/silverstripe-advancedwidgeteditor 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An alternative to the SilverStripe Widgets module.
Laravel package for opinionated blog implementation
Analytics chooser extensions for site settings.
Import an RSS-feed into blog
CitaNZ's SilverStripe picture object and field for SilverStripe 4
统计信息
- 总下载量: 1.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-03-06