Guest User

Untitled

a guest
Dec 10th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. <?php
  2. if (!defined('TYPO3_MODE')) {
  3. die('Access denied.');
  4. }
  5.  
  6. $GLOBALS['TCA']['tx_customext_domain_model_department'] = array(
  7. 'ctrl' => array(
  8. 'title' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department',
  9. // title prefixed by department_id
  10. 'label' => 'department_id',
  11. 'label_alt' => 'title',
  12. 'label_alt_force' => 1,
  13. 'default_sortby' => 'ORDER BY title',
  14. 'tstamp' => 'tstamp',
  15. 'crdate' => 'crdate',
  16. 'cruser_id' => 'cruser_id',
  17. 'dividers2tabs' => true,
  18.  
  19. 'versioningWS' => 2,
  20. 'versioning_followPages' => true,
  21.  
  22. 'delete' => 'deleted',
  23. 'enablecolumns' => array(
  24. 'disabled' => 'hidden',
  25. ),
  26. 'searchFields' => 'title,department_id',
  27. 'iconfile' => 'EXT:custom_ext/Resources/Public/Icons/department.png',
  28.  
  29. // Copy related settings:
  30. 'hideAtCopy' => 1,
  31. 'prependAtCopy' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:prependAtCopy',
  32. 'setToDefaultOnCopy' => '',
  33. ),
  34.  
  35. // info dialog for record in BE
  36. 'interface' => array(
  37. 'showRecordFieldList' => 'hidden, title',
  38. 'maxDBListItems' => 5,
  39. ),
  40. 'palettes' => array(
  41. '1' => array(
  42. 'canNotCollapse' => '1',
  43. 'showitem' => 'title, --linebreak--, title_short, --linebreak--, department_id, --linebreak--, employments',
  44. ),
  45. ),
  46. 'types' => array(
  47. '1' => array(
  48. 'showitem' => 'hidden, tx_extbase_type, --palette--;LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.department_label;1, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime',
  49. ),
  50. ),
  51. 'columns' => array(
  52.  
  53. 't3ver_label' => array(
  54. 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
  55. 'config' => array(
  56. 'type' => 'input',
  57. 'size' => 30,
  58. 'max' => 255,
  59. ),
  60. ),
  61.  
  62. 'hidden' => array(
  63. 'exclude' => 1,
  64. 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
  65. 'config' => array(
  66. 'type' => 'check',
  67. ),
  68. ),
  69.  
  70. 'title' => array(
  71. 'exclude' => 0,
  72. 'label' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.title',
  73. 'config' => array(
  74. 'type' => 'input',
  75. 'size' => 30,
  76. 'eval' => 'trim',
  77. ),
  78. ),
  79. 'title_short' => array(
  80. 'exclude' => 0,
  81. 'label' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.title_short',
  82. 'config' => array(
  83. 'type' => 'input',
  84. 'size' => 30,
  85. 'eval' => 'trim',
  86. ),
  87. ),
  88. 'department_id' => array(
  89. 'exclude' => 0,
  90. 'label' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.department_id',
  91. 'config' => array(
  92. 'type' => 'input',
  93. 'size' => 30,
  94. 'eval' => 'trim',
  95. ),
  96. ),
  97. 'employments' => array(
  98. 'exclude' => 0,
  99. 'label' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.employments',
  100. 'config' => array(
  101. 'type' => 'inline',
  102. 'foreign_table' => 'tx_customext_domain_model_employment',
  103. 'foreign_field' => 'department',
  104. 'foreign_label' => 'employee',
  105. 'appearance' => array(
  106. 'useSortable' => true,
  107. 'levelLinksPosition' => 'bottom',
  108. ),
  109. ),
  110. ),
  111. ),
  112. );
Add Comment
Please, Sign In to add comment