Label Childnodes of Page

Hi guys,

how can I label childnodes of a page in the structremenu?

I tried this:

'TYPO3.Neos.NodeTypes:Page':
...
  childNodes:
    test1:
      ui:
        label: 'My custom Label'
      type: 'XY.xy:ContentCollection'
    test2:
      label: 'My custom Label'
      type: 'XY.xy:ContentCollection'

Is there any possibility at all?

Hello Marv,

a nodeType has a label property you can use for that. In the label you can define via eel how the label will be rendered in the structure and navigate components.

See: http://neos.readthedocs.io/en/stable/CreatingASite/NodeTypes/NodeTypeDefinition.html

Make sure to not mix this up with the ui.label of the nodetype which is the title that is used in the create node-dialog.

In your case you could either define a special Content Collection:

 XY.xy:ContentCollection.Test1:
    label: "${'Your custom label definition'}"
    superTypes:
      TYPO3.Neos:ContentCollection
    ui:
      label: 'Test 1 Content Collection'

Or adjust the label that is generated for Content Collections

TYPO3.Neos:ContentCollection:
  label: "${custom  collection label eel}"

This here is the label-generator that is default for nodes:

Regards, Martin

2 Likes