- Success Stories: full migration from old site (48/48, audited), markets n:n, quotation content block, columns content block, pretty SEO detail URLs via SuccessStoryPathRewrite middleware, list/detail split (list page 4 / story page), detailUrl/backUrl - New plugins: VITEC Locations (grid/list/map + RTE map text), VITEC Customer Logos (color/bw logic, only-show-selected), VITEC Card (one plugin for product/story/market/solution with reloading FlexForm + custom backend preview renderer) - Eventlist: layout dropdown (list/grid/teaserbar) in settings - Hero section CB: Images/Video tabs, background video + overlay - Product JSON: full category rootline (parents), fixed missing ConnectionPool import (all-products crash), category tree map - Backend preview CSS: container-query responsive (narrow columns) - Docs: ISO architecture spec, root + extension READMEs Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
197 lines
5.7 KiB
PHP
Executable File
197 lines
5.7 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'
|
|
]
|
|
);
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Locationlist',
|
|
[
|
|
\Evomedien\Vitec\Controller\LocationController::class => 'list'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\LocationController::class => 'list'
|
|
]
|
|
);
|
|
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Customerlogos',
|
|
[
|
|
\Evomedien\Vitec\Controller\CustomerController::class => 'list'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\CustomerController::class => 'list'
|
|
]
|
|
);
|
|
|
|
|
|
ExtensionUtility::configurePlugin(
|
|
'Vitec',
|
|
'Modelcard',
|
|
[
|
|
\Evomedien\Vitec\Controller\ModelcardController::class => 'list'
|
|
],
|
|
[
|
|
\Evomedien\Vitec\Controller\ModelcardController::class => 'list'
|
|
]
|
|
);
|
|
|
|
})();
|