Hallo zusammen,
Ich entwickle eine neue Extbase / Fluid Extension. Die Basis der Extension und das Domain Model lieferte der ExtensionBuild.
Nun möchte ich aus einem Controller auf die TypoScript variablezugreifen.Code:plugin.tx_abounitreservation.view.templateRootPath
Das geht laut verschiedenen Quellen auf dem Netz ganz einfach so:
Leider sieht dann das beim Debuggen bei mir so aus:PHP-Code:$extbaseFrameworkConfiguration = $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
$templateRootPath = t3lib_div::getFileAbsFileName($extbaseFrameworkConfiguration['view']['templateRootPath']);
Alle variablen im view sind leer.
Mein TypoScript sieht so aus:
constants.txt
setup.txtCode:plugin.tx_abounitreservation { view { # cat=plugin.tx_abounitreservation/file; type=string; label=Path to template root (FE) templateRootPath = EXT:abo_unit_reservation/Resources/Private/Templates/ # cat=plugin.tx_abounitreservation/file; type=string; label=Path to template partials (FE) partialRootPath = EXT:abo_unit_reservation/Resources/Private/Partials/ # cat=plugin.tx_abounitreservation/file; type=string; label=Path to template layouts (FE) layoutRootPath = EXT:abo_unit_reservation/Resources/Private/Layouts/ } persistence { # cat=plugin.tx_abounitreservation//a; type=string; label=Default storage PID storagePid = } }
Sieht für mich alles ganz richtig aus. Hat irgend jemand eine Idee, warum das nicht klappt.Code:plugin.tx_abounitreservation { view { templateRootPath = {$plugin.tx_abounitreservation.view.templateRootPath} partialRootPath = {$plugin.tx_abounitreservation.view.partialRootPath} layoutRootPath = {$plugin.tx_abounitreservation.view.layoutRootPath} } persistence { storagePid = {$plugin.tx_abounitreservation.persistence.storagePid} } }
Grüsse & Danke
Rico
Das sieht alles sehr danach aus, als hättest Du das Statische Template der Extension überhaupt nicht eingebunden
Stefan
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen