I followed the tutorial of punkt.de (Neos Workshop) and realized step 1 to 4.
Here the nodetype definition:
'WL.WeinLaden:Wine': superTypes: 'Neos.Neos:Content': true ui: label: Wein icon: icon-glass inspector: groups: wine: label: Wein properties: title: type: string ui: label: 'Name' inlineEditable: true aloha: placeholder: 'Titel des Weins' description: type: string ui: label: 'Beschreibung' inlineEditable: true aloha: placeholder: 'Beschreibung des Weins' grape: type: string defaultValue: '' ui: label: Rebsorte help.message: Hier bitte die Rebsorte wählen reloadIfChanged: true inspector: group: wine editor: Neos.Neos/Inspector/Editors/SelectBoxEditor editorOptions: values: Merlot: label: Merlot Syrah: label: Syrah Chardonnay: label: Chardonnay image: type: Neos\Media\Domain\Model\ImageInterface ui: label: Bild reloadIfChanged: true inspector: group: wine editorOptions: crop: aspectRatio: locked: width: 3 height: 2
fusion file:
prototype(WL.WeinLaden:Wine) < prototype(Neos.Neos:Content) { partialRootPath = 'resource://Neos.NodeTypes/Private/Templates/NodeTypes/Partials' }
template file:
{namespace neos=Neos\Neos\ViewHelpers} <div {attributes -> f:format.raw()}> <div class="thumbnail"> <f:render partial="Image" arguments="{image:node.properties.image, alt:node.properties.title, maximumWidth:1600}" /> <div class="caption"> <neos:contentElement.editable property="title" tag="h3" /> <neos:contentElement.editable property="description" tag="p" /> <div class="row"> <div class="col-md-6">Rebsorte:</div> <div class="col-md-6"><b>{node.properties.grape}</b></div> </div> </div> </div> </div>
Later I checked the Configuration of the NodeTypes and found an error: “NodeTypes.WL.WeinLaden:Wine.properties.grape → None of the given schemas null,dictionary matched array”.
What does it mean? What is wrong here?
Thanks for any hints.