ext_localconf.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. if (!defined('TYPO3_MODE')) {
  3. die('Access denied.');
  4. }
  5. \FluidTYPO3\Flux\Core::registerProviderExtensionKey('OpenTalent.OtTemplating', 'Page');
  6. \FluidTYPO3\Flux\Core::registerProviderExtensionKey('OpenTalent.OtTemplating', 'Content');
  7. call_user_func(
  8. function()
  9. {
  10. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
  11. 'Opentalent.OtTemplating',
  12. 'Events',
  13. [
  14. 'Event' => 'preview'
  15. ],
  16. // non-cacheable actions
  17. [
  18. 'Event' => '',
  19. ]
  20. );
  21. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
  22. 'Opentalent.OtTemplating',
  23. 'AllEvents',
  24. [
  25. 'Event' => 'index,show,noEvents'
  26. ],
  27. // non-cacheable actions
  28. [
  29. 'Event' => '',
  30. ]
  31. );
  32. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
  33. 'Opentalent.OtTemplating',
  34. 'Donors',
  35. [
  36. 'Donor' => 'getDonors'
  37. ],
  38. // non-cacheable actions
  39. [
  40. ]
  41. );
  42. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
  43. 'Opentalent.OtTemplating',
  44. 'Members',
  45. [
  46. 'Member' => 'getMembers,getMembersCa'
  47. ],
  48. // non-cacheable actions
  49. [
  50. ]
  51. );
  52. // wizards
  53. \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
  54. 'mod {
  55. wizards.newContentElement.wizardItems.plugins {
  56. elements {
  57. events {
  58. iconIdentifier = ot_templating-plugin-events
  59. title = LLL:EXT:ot_templating/Resources/Private/Language/locallang_db.xlf:tx_ot_templating_events.name
  60. description = LLL:EXT:ot_templating/Resources/Private/Language/locallang_db.xlf:tx_ot_templating_events.description
  61. tt_content_defValues {
  62. CType = list
  63. list_type = ottemplating_events
  64. }
  65. }
  66. donors {
  67. iconIdentifier = ot_templating-plugin-donors
  68. title = LLL:EXT:ot_templating/Resources/Private/Language/locallang_db.xlf:tx_ot_templating_donors.name
  69. description = LLL:EXT:ot_templating/Resources/Private/Language/locallang_db.xlf:tx_ot_templating_donors.description
  70. tt_content_defValues {
  71. CType = list
  72. list_type = ottemplating_donors
  73. }
  74. }
  75. }
  76. show = *
  77. }
  78. }'
  79. );
  80. $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
  81. $iconRegistry->registerIcon(
  82. 'ot_templating-plugin-events',
  83. \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
  84. ['source' => 'EXT:ot_templating/Resources/Public/Icons/user_plugin_events.svg']
  85. );
  86. $iconRegistry->registerIcon(
  87. 'ot_templating-plugin-donors',
  88. \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
  89. ['source' => 'EXT:ot_templating/Resources/Public/Icons/user_plugin_donors.svg']
  90. );
  91. }
  92. );