Hey,
I setup a standard Neos site package. Everything is working fine. Now I’m trying to make a separate package for a custom element (just for testing and learning Neos). In this package I defined a new page type and added this in the site package configuration yaml file. The new page type shows up in the backend an I can create a new page of that type. The problem is that the page isn’t rendering. I just get the error “No Fusion object found in path “page””.
added Package - yaml:
'Plugin.Rezepte:Document.DetailPage':
superTypes:
'Neos.Neos:Document': true
ui:
label: 'Rezept - Eintrag'
icon: 'file'
help:
message: ''
inspector:
groups:
pageSettings:
label: 'Eigenschaften'
position: 200
icon: 'icon-image'
properties:
'category':
type: array
ui:
label: 'Kategorie'
inspector:
group: 'pageSettings'
editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
editorOptions:
placeholder: 'Bitte auswählen'
values:
categoryOne:
label: 'Rotwein'
categoryTwo:
label: 'Weißwein'
properties:
'category':
type: array
ui:
label: 'Kategorie'
inspector:
group: 'pageSettings'
editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
editorOptions:
placeholder: 'Bitte auswählen'
values:
categoryOne:
label: 'Rotwein'
categoryTwo:
label: 'Weißwein'
added Package - fusion 1:
prototype(Plugin.Rezepte:Document.DetailPage) < prototype(Neos.Fusion:Component) {
renderer = Plugin.Rezepte:Document.DetailPageRenderer {
body = afx`
<div class="container">
<h1>test</h1>
</div>
`
}
}
added Package - fusion 2:
prototype(Plugin.Rezepte:Document.DetailPageRenderer) < prototype(Neos.Fusion:Component) {
body = null
bodyClass = null
renderer = Neos.Neos:Page {
head {
stylesheets {
}
javascripts {
}
}
bodyTag.attributes.class = ${props.bodyClass}
body = ${props.body}
}
}
Sitepackage:
added just the the new page type under NodeTypes constraints
Error Message
# An exception was thrown while Neos tried to render your page
No Fusion object found in path "page" Please make sure to define one in your Fusion configuration.
`root<Neos.Fusion:Case>/
default<Neos.Fusion:Matcher><Neos.Fusion:Matcher>/`
Hope someone can help me out.
Greetings David