ext_tables.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Opentalent\OtTemplating\Controller\OtCustomizerController;
  3. defined('TYPO3') || die('Access denied.');
  4. // ext_tables.php contient les directives permettant de configurer le backend
  5. call_user_func(
  6. function()
  7. {
  8. // Include the configuration files
  9. \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
  10. 'ot_templating',
  11. 'Configuration/TypoScript',
  12. 'Templating');
  13. if (TYPO3_MODE === 'BE') {
  14. /**
  15. * Registers the customizer backend module
  16. */
  17. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
  18. 'OtTemplating',
  19. 'web', // Make module a submodule of 'web'
  20. 'otcustomizer', // Submodule key
  21. 'before:OtStatsOtstats', // Position
  22. array(
  23. OtCustomizerController::class => 'index,selectTemplate,updatePreferences',
  24. ),
  25. array(
  26. 'access' => 'user,group',
  27. 'icon' => 'EXT:ot_templating/Resources/Public/Icons/Extension_white.png',
  28. 'labels' => 'LLL:EXT:ot_templating/Resources/Private/Language/locallang_mod.xlf',
  29. )
  30. );
  31. }
  32. }
  33. );