Hi,
I’d like to have a page with a title and a subtitle. Creating the node type and rendering the template is no problem.
'My.Page:MyDocument':
superTypes: ['TYPO3.Neos:Document']
. . .
properties:
'title':
type: 'string'
. . .
'subtitle':
type: 'string'
. . .
My problem is to render the two properties title
and subtitle
. I want to render subtitle
inside the title
's tag like this:
<h1 class="ui header">{title}
<small class="sub header">{subtitle}</small>
</h1>
That’s perfectly fine in order to just render the properties’s values . But I’d like to to edit the properties inline inside the backend. With the code above that is not possible.
I would need something like
<h1 class="ui header">{neos:contentElement.editable(property: 'title', tag: 'none')}
{neos:contentElement.editable(property: 'subtitle', tag: 'small' class="sub header")}
</h1>
Or
<neos:contentElement.editable property="title" tag="h1" class="ui header">
{neos:contentElement.editable(property: 'subtitle', tag: 'small' class="sub header")}
</neos:contentElement.editable>
Is something like this possible?