[Neos] Put Text node as direct child on page

Dmitri Pisarev dimaip at gmail.com
Fri Mar 6 08:28:06 CET 2015


Hi Bernhard!
Why nodePath?
Maybe smth like this would work:
@override.node = ${q(documentNode).children('teaser').get(0)}

On Thu, 5 Mar 2015 at 22:15 Bernhard Aster <bernhard.aster at arrabiata.de>
wrote:

> Hi,
>
> i tried it in a slightly different way but also doesn't work.
>
> NodeTypes.yaml:
>
> 'TYPO3.Neos.NodeTypes:Page':
>   childNodes:
>     'teaser':
>         type: 'TYPO3.Neos.NodeTypes:Text'
>
>
> TS:
>                 // These are your content areas, you can define as many as
> you want, just name them and the nodePath.
> page = Page
>     ...
>
>     body {
>                 ....
>
>                 content {
>                         // The default content section
>                         teaser = TYPO3.Neos.NodeTypes:Text {
>                                 nodePath = 'teaser'
>                         }
>
> Template:
> {content.teaser -> f:format.raw()}
>
> So far everthing looks good. I got an new node of type text and i could
> edit the text. But when Neos starts to saving (right top corner
> "Saving...") after a while it results in "An error occurred while saving.
> Server communication error: Internal Server Error. An error occurred during
> saving. Reload the page to attempt to fix the problem. "
>
> I'm not sure if this is a bug or i (we) did something wrong?
>
>
>
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
>


More information about the Neos mailing list