ext_localconf.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. // call_user_func( function()
  3. // {
  4. // } );
  5. use TYPO3\CMS\Core\Utility\GeneralUtility;
  6. // $iconRegistry = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
  7. // $iconRegistry->registerIcon('begriffe_list_record_icon', \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, ['source' => 'EXT:begriffmgt/Resources/Public/Icons/book.png']);
  8. call_user_func(
  9. function () {
  10. // \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
  11. // 'Meramo.Begriffemgt',
  12. // 'Termlisting',
  13. // [
  14. // \Meramo\Begriffmgt\Controller\DashboardController::class => 'list',
  15. // ],
  16. // // non-cacheable actions
  17. // [
  18. // \Meramo\Begriffmgt\Controller\DashboardController::class => 'list',
  19. // ]
  20. // );
  21. // Add PageTSConfig (chapter 6)
  22. //$languageFile = 'begriffmgt/Resources/Private/Language/locallang_db.xlf';
  23. // \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
  24. // 'mod {
  25. // wizards.newContentElement.wizardItems.plugins {
  26. // elements {
  27. // Termlisting {
  28. // iconIdentifier = begriffmgt-plugin-bloglisting
  29. // title = Auflistung der Chatbot Gegriffe
  30. // description = Verwaltung von Chatbot Begriffe
  31. // tt_content_defValues {
  32. // CType = list
  33. // list_type = Begriffmgt_termlisting
  34. // }
  35. // }
  36. // }
  37. // show = *
  38. // }
  39. // }'
  40. // );
  41. // Register extension icon (chapter 6)
  42. $iconRegistry = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
  43. $iconRegistry->registerIcon(
  44. 'begriffe_list_record_icon',
  45. \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
  46. ['source' => 'EXT:begriffmgt/Resources/Public/Icons/book.png']
  47. );
  48. $iconRegistry->registerIcon(
  49. 'begriffe_module_icon',
  50. \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
  51. ['source' => 'EXT:begriffmgt/Resources/Public/Icons/chatbot.svg']
  52. );
  53. }
  54. );