My standard Page
node, page
uses predefined sections:
page = Page {
head {
metadata = TYPO3.TypoScript:Template {
templatePath = 'resource://TH.Blog/Private/Templates/Page/Default.html'
sectionName = 'metadata'
}
}
body {
templatePath = 'resource://My.Page/Private/Templates/Page/Default.html'
sectionName = 'body'
}
}
If another Page
node derives from that I wouldn’t have to define these sections. If I’m fine with how metadata
is defined in page
I can reuse it in that deriving node. I just need to adjust the templatePath
of the body section:
custom < page {
body.templatePath = 'resource://My.Page/Private/Templates/Page/Custom.html'
}
I’d like to use that functionality with custom sections within body. I tried:
page = Page {
head { … }
body {
templatePath = 'resource://My.Page/Private/Templates/Page/Default.html'
sectionName = 'body'
footer = TYPO3.TypoScript:Template {
templatePath = 'resource://My.Page/Private/Templates/Page/Default.html'
sectionName = 'footer'
}
}
}
But this doesn’t work.
#Default.html
<!DOCTYPE html>
{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<html>
<head>
…
</head>
<body>
<f:section name="body">
<p>Body</p>
<f:section name="footer">
<footer><p>Footer</p></footer>
</f:section>
</f:section>
</body>
</html>
This Fluid template “looses” the footer section. Why?
<!DOCTYPE html>
<html>
<head>
…
</head>
<body>
<p>Body</p>
</body>
</html>