Mr_media

Backend Layout TS file

Apr 23rd, 2017
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. #### my fluid templates #####
  2.  
  3. page.typeNum = 0
  4. page = PAGE
  5. page.10 = CASE
  6. page.10 {
  7. key.data = levelfield:-1,backend_layout_next_level,slide
  8. key.override.field = backend_layout
  9.  
  10. #default = FLUIDTEMPLATE
  11. #default {
  12. 1 = FLUIDTEMPLATE
  13. 1 {
  14. format = html
  15. file = fileadmin/templates/index.html
  16. layoutRootPath = fileadmin/templates/layouts/
  17. partialRootPath = fileadmin/templates/partials/
  18.  
  19. variables {
  20. #variables to be used with {}
  21. siteName = TEXT
  22. siteName.value = hhhhh.nl
  23. pageTitle = TEXT
  24. pageTitle.data = page:title
  25. #bepalen welke inhoud waar komt:
  26. content < styles.content.get
  27. #hoofdinhoud
  28. content_main < styles.content.get
  29. content_main.select.where = colPos = 0
  30. #colom 1
  31. content_column_1 < styles.content.get
  32. content_column_1.select.where = colPos = 1
  33. #colom 2
  34. content_column_2 < styles.content.get
  35. content_column_2.select.where = colPos = 2
  36. }
  37. }
  38.  
  39. #extra template 1
  40. 2 = FLUIDTEMPLATE
  41. 2 {
  42. format = html
  43. file = fileadmin/templates/layouts/alternatieve_pagina.html
  44. layoutRootPath = fileadmin/templates/layouts/
  45. partialRootPath = fileadmin/templates/partials/
  46.  
  47.  
  48. variables {
  49. siteName = TEXT
  50. siteName.value = Menes.nl
  51. pageTitle = TEXT
  52. pageTitle.data = page:title
  53. content < styles.content.get
  54. content_main < styles.content.get
  55. content_main.select.where = colPos = 0
  56. content_column_1 < styles.content.get
  57. content_column_1.select.where = colPos = 1
  58. content_column_2 < styles.content.get
  59. content_column_2.select.where = colPos = 2
  60. }
  61. }
  62.  
  63. #extra template 2
  64. 3 = FLUIDTEMPLATE
  65. 3 {
  66. format = html
  67. file = fileadmin/templates/layouts/small_header_page.html
  68. layoutRootPath = fileadmin/templates/layouts/
  69. partialRootPath = fileadmin/templates/partials/
  70.  
  71.  
  72. variables {
  73. siteName = TEXT
  74. siteName.value = Menes.nl
  75. content < styles.content.get
  76. content_main < styles.content.get
  77. content_main.select.where = colPos = 0
  78. content_column_1 < styles.content.get
  79. content_column_1.select.where = colPos = 1
  80. content_column_2 < styles.content.get
  81. content_column_2.select.where = colPos = 2
  82. }
  83. }
  84. }
  85.  
  86.  
  87. ###############################################################################
  88. ##for selecting a Backend layout with FE template:
  89.  
  90. page.10.file.stdWrap.cObject = CASE
  91. page.10.file.stdWrap.cObject {
  92. key.data = levelfield:-1, backend_layout_next_level, pagelayout, slide
  93. key.override.field = pagelayout
  94. default = TEXT
  95. default.value = fileadmin/templates/index.html
  96. pagets__0 = TEXT
  97. pagets__0.value = fileadmin/templates/index.html
  98. pagets__1 = TEXT
  99. pagets__1.value = fileadmin/templates/layouts/small_header_page.html
  100. pagets__2 = TEXT
  101. pagets__2.value = fileadmin/templates/layouts/alternatieve_pagina.html
  102. }
  103.  
  104.  
  105. ################# #######################
  106. #####################################################################
  107.  
  108. ###For file pageTSconfig.ts to be included in Typo3 PageTS
  109. ####<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/templates/ts/page_backend_layouts/pageTSConfig.ts">
  110.  
  111. # Layout Select box
  112. TCEFORM.pages {
  113. layout.altLabels.3 = 3 Alternatieve Pagina
  114. layout.altLabels.2 = 2 Small Header Pagina
  115. layout.altLabels.1 = 1 Layout (1)
  116. layout.altLabels.0 = 0 Standaard Pagina
  117. removeItems = 4,5,6,7,9,10
  118. }
  119.  
  120.  
  121. ### Backend Layouts #####
  122.  
  123. mod.web_layout.BackendLayouts{
  124. 1 {
  125. title = Layout 1
  126. config {
  127. backend_layout {
  128. colCount = 2
  129. rowCount = 1
  130. rows {
  131. 1 {
  132. columns {
  133. 1 {
  134. name = linker_inoud
  135. colPos = 1
  136. }
  137. 2 {
  138. name = midden_inhoud
  139. colPos = 0
  140. }
  141. }
  142. }
  143. }
  144. }
  145.  
  146. }
  147. }
  148.  
  149.  
  150. }
Advertisement
Add Comment
Please, Sign In to add comment