Hallo,
in einem Flexform habe ich ein Feld vom Typ "user" mit dem ich gern ein eigenes Feld in das Flexform packen möchte. Dieses möchte ich aber am liebsten über ein Fluid Template laden. Aber ich kriege keine Instanz gebacken von Fluid da meine userFunc kein Controller ist (ich wüsste auch nicht wie ich das ändern sollte).
Folgendes habe ich schon probiert:
protected function getFluidRenderer($file = 'Email/Email.txt') {
// create another instance of Fluid
$renderer = \TYPO3\CMS\Extbase\Object\ObjectManager::create('\\TYPO3\\CMS\\Fluid\\View\\StandaloneView');
#$renderer->setFormat("html");
/*$renderer->setControllerContext($this->controllerContext);
// find the view-settings and set the template-files
$conf = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
$renderer->setTemplatePathAndFilename(\TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($conf['view']['templateRootPath']) . $file);
$renderer->setLayoutRootPath(\TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($conf['view']['layoutRootPath']));
$renderer->setPartialRootPath(\TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($conf['view']['partialRootPath']));
// and return the new Fluid instance
return $renderer;*/
}
Kann mir jemand sagen wie ich in eine Flexform userfunc ein fluid template laden und rendern kann?
Danke schonmal