Initial Commit

This commit is contained in:
khaccount
2026-05-18 14:46:25 +02:00
parent 4f495177e4
commit b6d2142214
166 changed files with 13952 additions and 178 deletions

View File

@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Evomedien\Vitec\View;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Backend\View\BackendLayoutView;
/**
* Overrides BackendLayoutView so the page module always reflects pages.layout
* without the editor having to set backend_layout manually.
*/
final class VitecBackendLayoutView extends BackendLayoutView
{
public function getSelectedCombinedIdentifier(int $pageId): string|false
{
if ($pageId <= 0) {
return parent::getSelectedCombinedIdentifier($pageId);
}
$page = BackendUtility::getRecord('pages', $pageId, 'layout');
if (!is_array($page) || !isset($page['layout'])) {
return parent::getSelectedCombinedIdentifier($pageId);
}
// Combined identifier format: "<dataProvider>__<layoutId>"
return 'vitec__' . (int)$page['layout'];
}
}