Advertisement
Mr_media

Template TYPO3 Fluid Setup 001

Nov 29th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. # PAGE_TS for Layout Select box for the FE templates
  2. TCEFORM.pages {
  3. #layout.altLabels.3 = New_other_templates
  4. layout.altLabels.2 = EquipmentTemplate
  5. layout.altLabels.1 = MainTemplate
  6. layout.altLabels.0 = DefaultTemplate
  7. removeItems = 4,5,6,7,8,9,10
  8. }
  9.  
  10. TS CONFIG FLUID TEMPLATE
  11.  
  12. ###########################################
  13. ####### Config Fluid Template #############
  14.  
  15. page = PAGE
  16.  
  17. page.typeNum = 0
  18.  
  19. page.10 = FLUIDTEMPLATE
  20.  
  21. page.10{
  22.  
  23. #Path to the template files stored in extension
  24.  
  25. partialRootPath = {$resDir}/Private/Partials
  26.  
  27. layoutRootPath = {$resDir}/Private/Layouts
  28.  
  29.  
  30.  
  31. file.cObject = CASE
  32.  
  33. file.cObject {
  34.  
  35. key.data = levelfield:-2, backend_layout_next_level, slide
  36.  
  37. key.override.field = backend_layout
  38.  
  39. #default template
  40.  
  41. default = TEXT
  42.  
  43. default.value = {$resDir}/Private/Templates/DefaultTemplate.html
  44.  
  45. #Default template
  46.  
  47. pagets__1 = TEXT
  48.  
  49. pagets__1.value = {$resDir}/Private/Templates/Main_Template.html
  50.  
  51. #Second template
  52.  
  53. pagets__2 = TEXT
  54.  
  55. pagets__2.value = {$resDir}/Private/Templates/Eq_Template.html
  56.  
  57. #Third template
  58.  
  59. #pagets__3 = TEXT
  60.  
  61. #pagets__3.value = {$resDir}/Private/Templates/New_Other_Template.html
  62.  
  63. }
  64.  
  65. #Here some variables for use in the template by using {}
  66.  
  67. variables {
  68.  
  69. siteName = TEXT
  70.  
  71. siteName.value = SiteName
  72.  
  73. pageTitle = TEXT
  74.  
  75. pageTitle.data = page:title
  76.  
  77. ########
  78.  
  79. #get the content into the template:
  80.  
  81. content < styles.content.get
  82.  
  83. #Maincontent
  84.  
  85. content_main < styles.content.get
  86.  
  87. content_main.select.where = colPos = 0
  88.  
  89. #Content Colom 1
  90.  
  91. content_column_1 < styles.content.get
  92.  
  93. content_column_1.select.where = colPos = 1
  94.  
  95. #Content Colom 2
  96.  
  97. content_column_2 < styles.content.get
  98.  
  99. content_column_2.select.where = colPos = 2
  100. #more columns and colPos here if needed
  101.  
  102. }
  103.  
  104. }
  105.  
  106.  
  107. And the PageTS for the BE
  108.  
  109. ### Backend Layouts
  110.  
  111. mod.web_layout.BackendLayouts{
  112.  
  113. #template for default pages
  114. 1 {
  115. title = Default Template
  116. config {
  117. backend_layout {
  118. colCount = 1
  119. rowCount = 1
  120. rows {
  121. 1 {
  122. columns {
  123. 1 {
  124. name = Main Content
  125. colPos = 0
  126. }
  127. }
  128. }
  129. }
  130. }
  131. }
  132. }
  133.  
  134.  
  135. #template for main pages
  136. 2 {
  137. title = Main Template
  138. config {
  139. backend_layout {
  140. colCount = 1
  141. rowCount = 1
  142. rows {
  143. 1 {
  144. columns {
  145. 1 {
  146. name = Main Content
  147. colPos = 0
  148. }
  149. }
  150. }
  151. }
  152. }
  153. }
  154. }
  155.  
  156.  
  157. #template for equipment pages
  158. 3 {
  159. title = Equipment Template
  160. config {
  161. backend_layout {
  162. colCount = 1
  163. rowCount = 1
  164. rows {
  165. 1 {
  166. columns {
  167. 1 {
  168. name = Main Content
  169. colPos = 0
  170. }
  171. }
  172. }
  173. }
  174. }
  175. }
  176. }
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183. #end of the BE templates
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement