[TYPO3-german] createIdentifierForFile des StandaloneView lst EXT nicht auf?
Maximilian FäÃler
faesslerweb at web.de
Tue Sep 23 13:01:40 CEST 2014
Hallo Johannes,
mit "$this->settings" bekommt man nur das extension-eigene TypoScript. Wenn der TemplateRootPath benötigt wird, gelangst Du folgendermaßen an die gewünschten Informationen:
$extbaseFrameworkConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
$templateRootPath = \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($extbaseFrameworkConfiguration['view']['templateRootPath']);
$templatePathAndFilename = $templateRootPath . 'MyTemplateFolger/MyTemplate.html';
$this->view->setTemplatePathAndFilename($templatePathAndFilename);
Lg,
Max
More information about the TYPO3-german
mailing list