[Neos] ChildNodes type

Visay Keo visay.keo at typo3.org
Mon Mar 9 15:12:24 CET 2015


Did you configure constraint for the node types? Something like below 
would allow you to add Text and Image only for the teaser.

'TYPO3.Neos.NodeTypes:Page':
   childNodes:
     'teaser':
       type: 'TYPO3.Neos:ContentCollection'
       constraints:
         nodeTypes:
           '*': FALSE
           'TYPO3.Neos.NodeTypes:Text': TRUE
           'TYPO3.Neos.NodeTypes:Image': TRUE

On  9 មិនា 2015 20:55, Dima Doronenko wrote:
> Hi, all
>
> I have trouble with childNodes type, here settings:
>
> 'TYPO3.Neos.NodeTypes:Page':
>   childNodes:
>     'teaser':
>       type: 'TYPO3.Neos:ContentCollection'
>
> when I try to add some content element to teaser, I have only  two
> general content elements Text and Image to add.
>
> How can I  get all list of content elements, like in the
> content.main(Main Section) ?

-- 
TYPO3 .... Inspiring People To Share!
Participate: http://typo3.org/participate/


More information about the Neos mailing list