Hello neos-community,
I’ve problem with node rendering, so this is my node-definition:
'mysite.com:Article':
superTypes:
'TYPO3.Neos:Content': TRUE
ui:
label: 'Unterartikel'
group: 'somegroup'
icon: 'icon-picture'
inspector:
groups:
article:
label: 'Artikel'
position: 50
childNodes:
articleContent:
type: 'TYPO3.Neos:ContentCollection'
properties:
article-header:
type: string
defaultValue: 'Artikel-Überschrift'
ui:
label: 'Überschrift'
inline-editable: TRUE
inspector:
group: 'article'
classes:
type: string
defaultValue: 'with-margin'
ui:
label: 'Css-Klassen'
inspector:
group: 'article'
And my ts-code:
prototype(Site:Article) < prototype(TYPO3.Neos:Content){
templatePath = 'resource://mysite.com/Private/Templates/NodeTypes/Article.html'
article-header = ${q(node).property('article-header')}
articleContent = PrimaryContent {
nodePath = 'articleContent'
}
classes = ${q(node).property('classes')}
}
And at least my template:
{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<article class="{classes}">
<h3 class="border-bottom-red">{neos:contentElement.editable(property: 'article-header')}</h3>
{articleContent -> f:format.raw()}
</article>
The result is, that neos offers possibility to add content (articleContent) in the content-tree, but he doesn’t render it and you can’t edit the added element. So where is the problem? Can anyone help me?
Thanks a lot,
Maik