wedevelopnl/silverstripe-grid
Composer 安装命令:
composer require wedevelopnl/silverstripe-grid
包简介
Grid-based content block system for SilverStripe
README 文档
README
A grid-based content block system for SilverStripe 6 CMS — structured Section → Row → Column layouts with configurable CSS framework adapters (Bootstrap, Tailwind, Bulma).
Requirements
- PHP ^8.3
- silverstripe/framework ^6.0, silverstripe/cms ^6.0, silverstripe/admin ^3.0, silverstripe/versioned ^3.0, silverstripe/vendor-plugin ^3.0
- unclecheese/display-logic ^4.0, wedevelopnl/silverstripe-media-field ^6.0.0-rc3
- Node >= 26 (only needed if you build the frontend yourself)
Optional:
silverstripe/reports— enables the Grid Elements report in CMS Reportstractorcow/silverstripe-fluent— multi-locale support with isolated grid records per locale (see Fluent integration)
Conflict: this module conflicts with
dnadesign/silverstripe-elementaland replaces its functionality.
Installation
composer require wedevelopnl/silverstripe-grid
Then run dev/build?flush=1 to pick up the new database schema and configuration.
Set the required SS_GRID_ADAPTER environment variable to select the active CSS framework adapter — a bundled preset name (bootstrap, tailwind, or bulma, case-insensitive) or the fully-qualified class name of a custom adapter. If it is unset, empty, or invalid the module throws when the container boots. See Grid Adapter System for the full reference.
Usage
Apply GridPageExtension to the page types that should have grid editing:
# app/_config/grid.yml Page: extensions: Grid: WeDevelop\Grid\Extensions\GridPageExtension
Render the grid in the page template:
<% loop $Sections %>$Me<% end_loop %>
That's a working integration. See Template integration for the per-page editor toggle, default-behavior configuration, theme overrides, and the holder chain.
Documentation
Usage guides
- Custom content elements — subclass
ContentElement, register CMS fields, add templates - Template integration —
GridPageExtensionconfiguration, holder chain, theme overrides, extension hooks - Internationalization — translating strings, adding a locale, PHP + JS collectors
Integration guides
- Migrating from Elemental / ElementalGrid —
BuildTask-based upgrade from SS5silverstripe-elemental/silverstripe-elemental-grid - Fluent (multi-locale) support — optional integration with
tractorcow/silverstripe-fluent
Architecture
- Backend architecture — data model, API layer, service design, validation
- Drag and Drop — frontend dnd-kit integration and backend reorder pipeline
- Grid Adapter System — building a new CSS framework adapter
Contributing
- Contributing guide — dev environment, test/coverage/QA commands, pull-request conventions
- E2E fixture protocol — YAML schema, post-actions, dev fixture endpoint
Changelog
See CHANGELOG.md for release history.
License
See LICENSE.
Maintainers
wedevelopnl/silverstripe-grid 适用场景与选型建议
wedevelopnl/silverstripe-grid 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 28 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 03 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「layout」 「grid」 「silverstripe」 「Content Blocks」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 wedevelopnl/silverstripe-grid 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wedevelopnl/silverstripe-grid 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 wedevelopnl/silverstripe-grid 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table.
Plug-ins for DataTables
TYPO3 extension providing content elements powered by gridelements and bootstrap. Available elements: container, columns, tabs, accordion, tile unit and card.
Analytics chooser extensions for site settings.
Listener to change layout for different module
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2026-03-10