Guest User

Untitled

a guest
Jan 27th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. namespace: TypoScript=TYPO3.TypoScript
  2.  
  3. /**
  4. * Root TypoScript template for the testsite Site
  5. */
  6. page = Page {
  7. head {
  8. stylesheets = TypoScript:Template
  9. stylesheets {
  10. templatePath = 'resource://sesc.testsite/Private/Templates/Page/Default.html'
  11. sectionName = 'stylesheets'
  12. }
  13.  
  14. scripts = TypoScript:Template
  15. scripts {
  16. templatePath = 'resource://sesc.testsite/Private/Templates/Page/Default.html'
  17. sectionName = 'scripts'
  18. }
  19. titleTag {
  20. // Overwrite the title tags content with a collection to create a breadcrumb
  21. content = TYPO3.TypoScript:Collection {
  22. // Retrieve all parent document nodes excluding the homepage
  23. collection = ${q(documentNode).add(q(documentNode).parents()).slice(0, -1).get()}
  24. itemName = 'node'
  25. iterationName = 'nodeIterator'
  26. // Implode node titles with a dash
  27. itemRenderer = ${q(node).property('title') + (nodeIterator.isLast ? '' : ' - ')}
  28. // Always add general site name as suffix
  29. @process.siteName = ${(value ? value + ' - ' : '') + 'Honig-Welten'}
  30. }
  31. }
  32. }
  33. // This query checks if the second level menu has items and sets an additional class for the body
  34. bodyTag.attributes.class = ${q(node).parents().count() >= 1 && q(node).children('[instanceof TYPO3.Neos:Document]').filter('[_hiddenInIndex=false]').count() > 0 ? 'has-subpages' : ''}
  35.  
  36. body {
  37. templatePath = 'resource://sesc.testsite/Private/Templates/Page/Default.html'
  38. sectionName = 'body'
  39. parts {
  40. menu = Menu {
  41. entryLevel = 1
  42. maximumLevels = 3
  43. }
  44. breadcrumb = Breadcrumb
  45. }
  46. // These are your content areas, you can define as many as you want, just name them and the nodePath.
  47. content {
  48.  
  49. teaser = ContentCollection {
  50. nodePath = 'teaser'
  51. }
  52.  
  53. // Default content section
  54.  
  55. main = PrimaryContent {
  56. nodePath = 'main'
  57. }
  58.  
  59.  
  60.  
  61. }
  62. footer = TYPO3.Neos:ContentCollection {
  63. nodePath = ${q(site).find('footer').property('_path')}
  64. collection = ${q(site).children('footer').children()}
  65. }
  66.  
  67. }
  68. }
  69. default < page
  70.  
  71. landingPage < page
  72. landingPage.body {
  73. templatePath = 'resource://sesc.testsite/Private/Templates/Page/LandingPage.html'
  74. }
Advertisement
Add Comment
Please, Sign In to add comment