ext_localconf.php 3.1 KB

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