Skip to content

Instantly share code, notes, and snippets.

@chanthornngeth
Created June 5, 2013 08:57
Show Gist options
  • Save chanthornngeth/5712596 to your computer and use it in GitHub Desktop.
Save chanthornngeth/5712596 to your computer and use it in GitHub Desktop.
/**
* Root TypoScript template for the Site
*/
page = Page
page.headerData {
metatags = TYPO3.TypoScript:Template
metatags {
templatePath = 'resource://MyPackage/Private/Templates/Page/Default.html'
sectionName = 'metatags'
description = ${q(node).property('description')}
}
stylesheets = TYPO3.TypoScript:Template
stylesheets {
templatePath = 'resource://MyPackage/Private/Templates/Page/Default.html'
sectionName = 'stylesheets'
}
javascripts = TYPO3.TypoScript:Template
javascripts {
templatePath = 'resource://MyPackage/Private/Templates/Page/Default.html'
sectionName = 'javascripts'
}
title = Template
title.templatePath = 'resource://MyPackage/Private/Templates/TypoScriptObjects/TitleMenu.html'
title.items = ${q(node).add(q(node).parents())}
title << 1.wrap(prefix:'<title>', suffix: '</title>')
title.siteTitle = ${q(node).property('siteTitle')}
}
page.@override.locale = 'de_DE'
page.locale = ${locale}
page.body {
templatePath = 'resource://MyPackage/Private/Templates/Page/Default.html'
sectionName = 'body'
parts {
menu = Menu
menu {
entryLevel = 2
templatePath = 'resource://MyPackage/Private/Templates/TypoScriptObjects/MainMenu.html'
maximumLevels = 4
}
siteMapMenu = Menu
siteMapMenu {
entryLevel = 2
templatePath = 'resource://MyPackage/Private/Templates/TypoScriptObjects/SitemapMenu.html'
maximumLevels = 4
}
breadcrumb = Template
breadcrumb.templatePath = 'resource://MyPackage/Private/Templates/TypoScriptObjects/BreadcrumbMenu.html'
breadcrumb.items = ${q(node).add(q(node).parents())}
}
// These are your content areas, you can define as many as you want, just name them and the nodePath.
sections {
main = Section
main.nodePath = 'main'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment