161 lines
4.9 KiB
PHP
Executable File
161 lines
4.9 KiB
PHP
Executable File
<?php
|
|
defined('TYPO3') || die();
|
|
|
|
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
|
|
|
// Configure view template paths for the OG Image backend module
|
|
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['vitec']['view'] = [
|
|
'templateRootPaths' => ['10' => 'EXT:vitec/Resources/Private/Templates/'],
|
|
'layoutRootPaths' => ['10' => 'EXT:vitec/Resources/Private/Layouts/'],
|
|
'partialRootPaths' => ['10' => 'EXT:vitec/Resources/Private/Partials/'],
|
|
];
|
|
|
|
// Register VITEC Backend Layout data provider — 21 BE layouts, one per pages.layout (0..20)
|
|
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['BackendLayoutDataProvider']['vitec']
|
|
= \Evomedien\Vitec\View\BackendLayoutDataProvider::class;
|
|
|
|
// Auto-sync pages.backend_layout <- pages.layout via DataHandler hook
|
|
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['vitec-sync-backend-layout']
|
|
= \Evomedien\Vitec\Hook\SyncBackendLayoutHook::class;
|
|
|
|
// XClass BackendLayoutView so the page module always reflects pages.layout
|
|
// without the editor having to set backend_layout manually.
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Backend\View\BackendLayoutView::class] = [
|
|
'className' => \Evomedien\Vitec\View\VitecBackendLayoutView::class,
|
|
];
|
|
|
|
|
|
// Register custom VITEC CKEditor RTE preset
|
|
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['vitec'] = 'EXT:vitec/Configuration/RTE/Vitec.yaml';
|
|
|
|
// FormEngine fieldWizard: "Structured Data generieren" button below the
|
|
// product structureddata field (see TCA + StructuredDataGeneratorWizard).
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1750000000] = [
|
|
'nodeName' => 'structuredDataGenerator',
|
|
'priority' => 40,
|
|
'class' => \Evomedien\Vitec\Backend\FormEngine\StructuredDataGeneratorWizard::class,
|
|
];
|
|
|
|
(static function () {
|
|
// Register plugins
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Productlist',
|
|
[
|
|
\Evomedien\Vitec\Controller\ProductController::class => 'list'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\ProductController::class => 'list'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Simplecard',
|
|
[
|
|
\Evomedien\Vitec\Controller\SimplecardController::class => 'list'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\SimplecardController::class => 'list'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Productshow',
|
|
[
|
|
\Evomedien\Vitec\Controller\ProductController::class => 'show'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\ProductController::class => 'show'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Usecaseshow',
|
|
[
|
|
\Evomedien\Vitec\Controller\UsecaseController::class => 'show'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\UsecaseController::class => 'show'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Marketshow',
|
|
[
|
|
\Evomedien\Vitec\Controller\MarketController::class => 'show'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\MarketController::class => 'show'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Solutionshow',
|
|
[
|
|
\Evomedien\Vitec\Controller\SolutionController::class => 'show'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\SolutionController::class => 'show'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Usecaselist',
|
|
[
|
|
\Evomedien\Vitec\Controller\UsecaseController::class => 'list'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\UsecaseController::class => 'list'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Downloadcard',
|
|
[
|
|
\Evomedien\Vitec\Controller\DownloadController::class => 'list, show'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\DownloadController::class => 'list, show'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Downloadcardcollection',
|
|
[
|
|
\Evomedien\Vitec\Controller\DownloadController::class => 'downloadcardcollection'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\DownloadController::class => 'downloadcardcollection'
|
|
]
|
|
);
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Datasheets',
|
|
[
|
|
\Evomedien\Vitec\Controller\DownloadController::class => 'datasheets'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\DownloadController::class => 'datasheets'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Eventlist',
|
|
[
|
|
\Evomedien\Vitec\Controller\EventController::class => 'list'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\EventController::class => 'list'
|
|
]
|
|
);
|
|
})();
|