[Neos] Put Text node as direct child on page

Reinis Zumbergs reinis.zumbergs at gmail.com
Mon Jan 26 12:30:09 CET 2015


Hello, all, my first post here!

We all know how to put ContentCollection on the page:
 - add new childnode in NodeTypes.yaml
 - add ContentCollection sub-path to body parts in Root.ts2

But I would like to put TYPO3.Neos.NodeTypes:Text directly on page. I tried various approaches including:
NodeTypes.yaml
'TYPO3.Neos.NodeTypes:Page':
  childNodes:
    headerLink1:
      type: 'TYPO3.Neos.NodeTypes:Text'

Root.ts2
page.body {
	// Frontpage header links
	headerLink1 = TYPO3.Neos.NodeTypes:Text {
		node = ${q(site).children('headerLink1')}
	}
}

But no success. 
The editable area in BE is created and the Text node is present in page structure, but when it tries to save changes, an error occurs saying:
Node type "TYPO3.Neos.NodeTypes:Page" does not have a property "text" according to the schema.

Another approach to somewhat achieve what I need would be to be able to limit ContentCollection to have only one child - no possibility to add more content nodes to the collection.




More information about the Neos mailing list