ext_tables.php 1.2 KB

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