定制 restruct/silverstripe-gridfieldpages 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

restruct/silverstripe-gridfieldpages

最新稳定版本:2.0.1

Composer 安装命令:

composer require restruct/silverstripe-gridfieldpages

包简介

Base Page & Holder classes for managing SiteTree items in a Gridfield instead of via SiteTree

README 文档

README

ARCHIVED (add issue to some Restruct module to let me know if you still need this module)

This module tackles the issue of a cluttered SiteTree by managing pages from a gridfield. It can easily handle thousands of subpages (production-tested with 65.000 pages under one parent).

This module is meant as base classes, it can be used on its own but usually you will want to subclass in order to add filtering/sorting, etc. An example module subclassing this module is Newsgrid (filterable newsitems managed from a gridfield).

Features

  • GridFieldPages extend SiteTree so no Page functionality is lost by using DataObjects.
  • Custom GridField components for quickly adding new pages.
  • Hides sub pages from the sitetree (via excludechildren).
  • Drag 'n drop sorting of pages (optional) (loop over $SortedChildren in templates).

Requirements

These will get auto-installed when using composer:

Optional, for drag & drop sorting (suggested, not auto-installed by composer):

Installation

composer require restruct/silverstripe-gridfieldpages dev-master

Optional: Drag & Drop Sorting

Drag and drop sorting is supported but not active by default, as often you will want to sort by other criteria, eg. Date or some other field. To activate drag & drop sorting, add to config.yml:

GridFieldPageHolder:
  apply_sortable_gridfield: true

Screenshots

Easily manage and add new pages through a GridField.

Edit pages in the regular editform, including settings, history & versioning.

Recommended

Manage newsitems from a gridfield, with embargo & expire (auto-publishing) functionality

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-10-02