Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Root TypoScript template for the Example site
- */
- include: LangMenu.ts2
- include: MainMenu.ts2
- prototype(TYPO3.Example:GermanFooter) < prototype(TYPO3.Neos:ContentCollection) {
- @cache {
- mode = 'cached'
- }
- nodePath = '/site/example/de'
- collection = ${q(site).find('de').children('footer').children(['instanceOf TYPO3.Example:Footer'])}
- }
- prototype(TYPO3.Example:EnglishFooter) < prototype(TYPO3.Neos:ContentCollection) {
- @cache {
- mode = 'cached'
- }
- nodePath = '/site/example/en'
- collection = ${q(site).find('en').children('footer').children(['instanceOf TYPO3.Example:Footer'])}
- }
- prototype(TYPO3.Example:DefaultFooter) < prototype(TYPO3.Neos:ContentCollection) {
- @cache {
- mode = 'cached'
- }
- nodePath = '/site/example/dk'
- collection = ${q(site).find('dk').children('footer').children(['instanceOf TYPO3.Example:Footer'])}
- }
- page = Page {
- head {
- stylesheets.site = TYPO3.TypoScript:Template {
- templatePath = 'resource://TYPO3.Example/Private/Templates/Page/Default.html'
- sectionName = 'stylesheets'
- }
- javascripts.site = TYPO3.TypoScript:Template {
- templatePath = 'resource://TYPO3.Example/Private/Templates/Page/Default.html'
- sectionName = 'headScripts'
- }
- }
- body {
- templatePath = 'resource://TYPO3.Example/Private/Templates/Page/Default.html'
- sectionName = 'body'
- parts {
- menu < mainMenu
- langMenu < langMenu
- }
- // These are your content areas, you can define as many as you want, just name them and the nodePath.
- content {
- // The default content section
- main = PrimaryContent {
- nodePath = 'main'
- }
- }
- footer = TYPO3.TypoScript:Case {
- de {
- condition = ${${Array.indexOf(q(node).parents().get(), q(site).find('de').get(0))} != -1}
- type = TYPO3.Example:GermanFooter
- }
- en {
- condition = ${${Array.indexOf(q(node).parents().get(), q(site).find('en').get(0))} != -1}
- type = TYPO3.Example:EnglishFooter
- }
- default {
- @position = 'end 9999'
- condition = ${true}
- type = TYPO3.Example:DefaultFooter
- }
- }
- javascripts.site = TYPO3.TypoScript:Template {
- templatePath = 'resource://TYPO3.Example/Private/Templates/Page/Default.html'
- sectionName = 'bodyScripts'
- }
- }
- }
- default < page
- landingPage < page
- landingPage.body {
- templatePath = 'resource://TYPO3.Example/Private/Templates/Page/Homepage.html'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement