定制 kleisli/neos-documentcollection 二次开发

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

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

kleisli/neos-documentcollection

最新稳定版本:1.0.0

Composer 安装命令:

composer require kleisli/neos-documentcollection

包简介

A backend list view of document subtrees for Neos CMS

README 文档

README

A backend list view of document subtrees for Neos CMS to avoid large and confusing document subtrees that typically occur with news articles or blog posts.

DocumentCollection

Usage

Fusion (Basic)

  • To enable the list view on any Document NodeType, it must be based on Kleisli.Neos.DocumentCollection:Document.DocumentCollection instead of an AbstractPage prototype based on Neos.Neos:Page.
  • The page that is shown in the frontend has to be configured as property layoutView.
  • The default view when accessing a DocumentCollection in the backend is list but you can also define defaultView = 'layout'
    • Switch between list and layout view using the icon tabs in the admin bar at the top of the page
prototype(My.Site:Document.News) < prototype(Kleisli.Neos.DocumentCollection:Document.DocumentCollection) {
    defaultView = 'list'
    layoutView = My.Site:Document.AbstractPage {
        ... 
    }
}

NodeTypes (Optional)

  • Use Kleisli.Neos.DocumentCollection:Constraint.HideInDocumentTree as a superType of your news article or blog post NodeType to hide them in the document tree. They can then only be accessed from the DocumentCollection views.
  • superType Kleisli.Neos.DocumentCollection:Document.DocumentCollection dosen't do much, but it defines the folder as NodeType icon.

Example

You can find a basic example in NodeTypes/Document/Example and Resources/Private/Fusion/Document/Example. To test the example in action, define the example NodeTypes as not abstract.

Todo

  • Pagination
  • Sorting
  • Search/Filter
  • Add document button in list view

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-04-25