/typo3/sysext/frontend/Configuration/TCA/sys_template.php

https://github.com/TYPO3/TYPO3.CMS · PHP · 204 lines · 202 code · 1 blank · 1 comment · 0 complexity · d97635320b4e2f1f6a1448245f8fd5c6 MD5 · raw file

  1. <?php
  2. return [
  3. 'ctrl' => [
  4. 'label' => 'title',
  5. 'descriptionColumn' => 'description',
  6. 'tstamp' => 'tstamp',
  7. 'sortby' => 'sorting',
  8. 'prependAtCopy' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
  9. 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template',
  10. 'versioningWS' => true,
  11. 'groupName' => 'system',
  12. 'origUid' => 't3_origuid',
  13. 'crdate' => 'crdate',
  14. 'cruser_id' => 'cruser_id',
  15. 'delete' => 'deleted',
  16. // Only admin, if any
  17. 'adminOnly' => true,
  18. 'enablecolumns' => [
  19. 'disabled' => 'hidden',
  20. 'starttime' => 'starttime',
  21. 'endtime' => 'endtime',
  22. ],
  23. 'typeicon_column' => 'root',
  24. 'typeicon_classes' => [
  25. 'default' => 'mimetypes-x-content-template-extension',
  26. '1' => 'mimetypes-x-content-template',
  27. ],
  28. 'searchFields' => 'title,constants,config',
  29. ],
  30. 'columns' => [
  31. 'title' => [
  32. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.title',
  33. 'config' => [
  34. 'type' => 'input',
  35. 'size' => 25,
  36. 'max' => 255,
  37. 'required' => true,
  38. ],
  39. ],
  40. 'hidden' => [
  41. 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
  42. 'exclude' => true,
  43. 'config' => [
  44. 'type' => 'check',
  45. 'renderType' => 'checkboxToggle',
  46. 'default' => 0,
  47. 'items' => [
  48. [
  49. 0 => '',
  50. 'invertStateDisplay' => true,
  51. ],
  52. ],
  53. ],
  54. ],
  55. 'starttime' => [
  56. 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
  57. 'exclude' => true,
  58. 'config' => [
  59. 'type' => 'datetime',
  60. 'default' => 0,
  61. ],
  62. ],
  63. 'endtime' => [
  64. 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
  65. 'exclude' => true,
  66. 'config' => [
  67. 'type' => 'datetime',
  68. 'default' => 0,
  69. 'range' => [
  70. 'upper' => mktime(0, 0, 0, 1, 1, 2038),
  71. ],
  72. ],
  73. ],
  74. 'root' => [
  75. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.root',
  76. 'config' => [
  77. 'type' => 'check',
  78. 'renderType' => 'checkboxToggle',
  79. 'default' => 0,
  80. ],
  81. ],
  82. 'clear' => [
  83. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.clear',
  84. 'config' => [
  85. 'type' => 'check',
  86. 'items' => [
  87. ['Constants'],
  88. ['Setup'],
  89. ],
  90. 'cols' => 2,
  91. ],
  92. ],
  93. 'constants' => [
  94. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.constants',
  95. 'config' => [
  96. 'type' => 'text',
  97. 'cols' => 48,
  98. 'rows' => 15,
  99. 'wrap' => 'off',
  100. 'enableTabulator' => true,
  101. 'fixedFont' => true,
  102. 'softref' => 'email[subst],url[subst]',
  103. ],
  104. ],
  105. 'include_static_file' => [
  106. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.include_static_file',
  107. 'config' => [
  108. 'type' => 'select',
  109. 'renderType' => 'selectMultipleSideBySide',
  110. 'size' => 10,
  111. 'maxitems' => 100,
  112. 'items' => [],
  113. 'softref' => 'ext_fileref',
  114. ],
  115. ],
  116. 'basedOn' => [
  117. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn',
  118. 'config' => [
  119. 'type' => 'group',
  120. 'allowed' => 'sys_template',
  121. 'maxitems' => 50,
  122. 'autoSizeMax' => 10,
  123. 'default' => '',
  124. 'fieldControl' => [
  125. 'editPopup' => [
  126. 'disabled' => false,
  127. 'options' => [
  128. 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_edit',
  129. ],
  130. ],
  131. 'addRecord' => [
  132. 'disabled' => false,
  133. 'options' => [
  134. 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_add',
  135. 'setValue' => 'prepend',
  136. ],
  137. ],
  138. ],
  139. ],
  140. ],
  141. 'includeStaticAfterBasedOn' => [
  142. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.includeStaticAfterBasedOn',
  143. 'exclude' => true,
  144. 'config' => [
  145. 'type' => 'check',
  146. 'renderType' => 'checkboxToggle',
  147. 'default' => 0,
  148. ],
  149. ],
  150. 'config' => [
  151. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.config',
  152. 'config' => [
  153. 'type' => 'text',
  154. 'rows' => 15,
  155. 'cols' => 48,
  156. 'wrap' => 'off',
  157. 'enableTabulator' => true,
  158. 'fixedFont' => true,
  159. 'softref' => 'email[subst],url[subst]',
  160. ],
  161. ],
  162. 'description' => [
  163. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.description',
  164. 'config' => [
  165. 'type' => 'text',
  166. 'rows' => 5,
  167. 'cols' => 48,
  168. ],
  169. ],
  170. 'static_file_mode' => [
  171. 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode',
  172. 'config' => [
  173. 'type' => 'select',
  174. 'renderType' => 'selectSingle',
  175. 'items' => [
  176. ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.0', '0'],
  177. ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.1', '1'],
  178. ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.2', '2'],
  179. ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.3', '3'],
  180. ],
  181. 'default' => 0,
  182. ],
  183. ],
  184. ],
  185. 'types' => [
  186. '1' => ['showitem' => '
  187. --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
  188. title, constants, config,
  189. --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.options,
  190. clear, root,
  191. --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.include,
  192. includeStaticAfterBasedOn, include_static_file, basedOn, static_file_mode,
  193. --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
  194. hidden,--palette--;;timeRestriction,
  195. --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
  196. description,
  197. --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
  198. '],
  199. ],
  200. 'palettes' => [
  201. 'timeRestriction' => ['showitem' => 'starttime, endtime'],
  202. ],
  203. ];