Skip to content

Kleisli/Neos.DocumentCollection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kleisli.Neos.DocumentCollection

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

About

A backend list view of document subtrees for Neos CMS

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages