[TYPO3-german] FluidTemplate in FlexForm Userfunc?

Udo Leimberger udo at t3developer.de
Tue Jun 4 13:05:06 CEST 2013


Servus,
du solltest deine userFunc Klasse vom ExtbaseAbstractController ableiten.

Oder du nutzt den Extbase ObjectManager.

Grüße Udo

IPhone Mail

Am 04.06.2013 um 12:28 schrieb Hendrik <h.reimers at neonaut.de>:

> 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
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german


More information about the TYPO3-german mailing list