Hey,
I want to Display the Title of the Page as a little Breadcrumb.
I tried the following code but its not working. What I am doing wrong?
prototype(WG.Site:Document.HomePage) < prototype(WG.Site:Document.AbstractPage) {
# On the Homepage you typically want to use the brand name as the start,
# so don't append it again
head.titleTag.outputSuffixOnTitleOverride = false
head {
titleTag = Neos.Fusion:Tag {
tagName = 'title'
content = ${q(node).property('title') + ' | Site'}
}
}
body.content = Neos.Fusion:Component {
main = Neos.Neos:ContentCollection {
nodePath = 'main'
}
breadCrumb = Neos.Fusion:Tag {
tagName = 'div'
content = ${q(node).property('title')}
}
renderer = afx`
<main class="main grid-container">
{props.breadCrumb}
{props.main}
</main>
`}