Issue Feature Rejected

#93741Feature request: function getTypoScriptForPage

Thomas Anders 03/15/21, 12:13 updated 02/03/25, 05:57

Description

I built a Symfony command that is configurable wit TypoScript but I could bring it to work only with help (Thanks to Jonas Eberle).
I struggled at the point where I needed the generated TypoScript for a specified rootpage.

I ended up with something like this:

$pid = 1234

$templateService = GeneralUtility::makeInstance(TemplateService::class);
$rootlineUtility = GeneralUtility::makeInstance(RootlineUtility::class, $pid);
$rootline = $rootlineUtility->get();
$templateService->runThroughTemplates($rootline);
$templateService->generateConfig();

dump($templateService->setup);

This seemed not very straightforward to me and after this I’m wishing me something like:

$typoscript = GeneralUtility::makeInstance(TypoScriptService::class)->getTypoScriptForPage($uid);

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.