[SOLVED] Nicer title for ChildNodes ContentCollections

We have Pages (Neos.Neos:Document) with ContentCollections as childNodes.
In the backend these Collection in the ContentTree always have the name:
“Content Collection (xyz)”

Is there a way to give them in the backend a nicer name? Like with most of the other elements as title property?

Code would be:

'Site:Document.HomePage':
  superTypes:
    'Neos.Neos:Document': true

  childNodes:
    'divisions':
      type: 'Neos.Neos:ContentCollection'

Example screenshot backend:

Found it out myself (and looked into the neos/demo package).

You can make a distinctive Element (Collection) for that:

'Site:Collection.Content.Division':
  superTypes:
    'Neos.Neos:ContentCollection': true

  # The label has to be here and NOT inside the ui property!
  label: "Company Divisions"
  ui:
    # You can even set your own icon here
    icon: fas fa-tags

  constraints:
    nodeTypes:
      '*': false
      '…': true

And now just use that element in the HomePage:

'Site:Document.HomePage':
  superTypes:
    'Neos.Neos:Document': true

  childNodes:
    'divisions':
      type: 'Site:Collection.Content.Division'
1 Like