Hey , I’m trying to add one super NodeType and under it 3 other NodeTypes that inherit from it , afterward I want to have one Default parent template that 3 other sub templates inherit from , I want to click on each NodeType and the result will be the rendering of the corresponding NodeType template that I defined in Typoscript, the Problem is when I try to do that I get this in the back-end :
and this is the error that I get in Data/Logs/System.log :
Exception in line 460 of /opt/neos/Data/Temporary/Production/Cache/Code/Flow_Object_Classes/TYPO3_TypoScript_Core_Runtime.php:
No template path set.
Most likely you didn't configure `templatePath` in your TypoScript object correctly.
For example you could add and adapt the following line to your TypoScript:
`prototype() < prototype(TYPO3.TypoScript:Template) {
templatePath = 'resource://Vendor.Package/Private/Templates/MyObject.html'
}`
NodeTypes.yaml :
'Vendor.Website:Basis':
superTypes:
'TYPO3.Neos.NodeTypes:Page': TRUE
ui:
label: 'Basis'
group: 'general'
'Vendor.Website:Startseite':
superTypes:
'Vendor.Website:Basis': TRUE
ui:
label: 'Startseite'
group: 'general'
'Vendor.Website:Suchergebnisliste':
superTypes:
'Vendor.Website:Basis': TRUE
ui:
label: 'Suchergebnisliste'
group: 'general'
'Vendor.Website:Produkt':
superTypes:
'Vendor.Website:Basis': TRUE
ui:
label: 'Produkt'
group: 'general'
Root.ts2 :
page = Page {
head {
meta = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/NodeTypes/Layouts/Default.html'
sectionName = 'meta'
title = ${q(node).property('title')}
}
stylesheets.site = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/NodeTypes/Layouts/Default.html'
sectionName = 'stylesheets'
}
javascripts.site = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/NodeTypes/Layouts/Default.html'
sectionName = 'scripts'
}
}
body {
javascripts.site = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/NodeTypes/Layouts/Default.html'
sectionName = 'bodyScripts'
}
}
}
basis = Vendor.Website:Basis
basis < page
basis.body {
header.site = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/NodeTypes/Basis.html'
sectionName = 'header'
}
content.site = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/NodeTypes/Basis.html'
sectionName = 'content'
}
footer.site = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/NodeTypes/Basis.html'
sectionName = 'footer'
}
}
startseite = Vendor.Website:Startseite
startseite < basis
startseite.body {
header.site = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/Basis/Startseite.html'
sectionName = 'header'
}
content.site = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/Basis/Startseite.html'
sectionName = 'content'
}
footer.site = TYPO3.TypoScript:Template {
templatePath = 'resource://Vendor.Website/Private/Templates/Basis/Startseite.html'
sectionName = 'footer'
}
}
Default.html :
<!DOCTYPE html>
{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<html>
<head>
<f:section name="meta">
<title>{title}</title>
<f:render partial="Common/meta" />
</f:section>
<f:section name="stylesheets">
<f:render partial="Common/stylesheets" />
</f:section>
<f:section name="scripts">
<f:render partial="Common/scripts" />
</f:section>
</head>
<body>
<header>
<f:render section="header" />
</header>
<div class="content">
<f:render section="content" />
</div>
<footer>
<f:render section="footer" />
</footer>
<f:section name="bodyScripts">
<f:render partial="Common/bodyScripts" />
</f:section>
</body>
</html>
Basis.html :
{namespace f=TYPO3\Fluid\ViewHelpers}
{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<f:layout name="Default" />
<f:section name="header">
<h1>Header</h1>
</f:section>
<f:section name="content">
{content.main -> f:format.raw()}
</f:section>
<f:section name="footer">
<h1>Footer</h1>
</f:section>
I appreciate any given help , thanks a lot .