TYPO3 v11: Load page TypoScript in eID

raw

example.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
use TYPO3\CMS\Core\Domain\Repository\PageRepository;
use TYPO3\CMS\Core\TypoScript\TemplateService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\RootlineUtility;
 
$pageRepository = GeneralUtility::makeInstance(PageRepository::class);
$rootLine = GeneralUtility::makeInstance(RootlineUtility::class, $pageId)->get();
$templateService = GeneralUtility::makeInstance(TemplateService::class);
$templateService->runThroughTemplates($rootLine);
$templateService->generateConfig();
 
$templateService->setup['plugin.']['tx_myext.']['settings.']['recipient'];
 
Christian Weiske Christian Weiske
owner

History