[TYPO3-german] FluidTemplate in FlexForm Userfunc?

Kay Strobach typo3 at kay-strobach.de
Wed Jun 5 16:45:27 CEST 2013


Hi,

stichwort: fluid standalone view (findest du im extbase wiki auf forge).

Grüße
Kay

Am 05.06.13 12:04, schrieb Hendrik:
> Hattest du (oder jemand anderes) schon Gelegenheit mal nachzuschauen wie
> man es machen könnte?
> 
> Danke schonmal
> 
> Am 04.06.2013 14:53, schrieb Udo Leimberger:
>> Servus,
>>
>> leider bin ich mom. unterwegs und kann nicht gucken.
>> Frühestens heute abend.
>>
>> Grüße Udo
>>
>> IPhone Mail
>>
>> Am 04.06.2013 um 13:44 schrieb Hendrik <h.reimers at neonaut.de>:
>>
>>> Hi,
>>>
>>> mit dem ableiten oder wie unten in meinem beispiel zu sehen habe ich es
>>> mit dem objekt manager schon probiert. leider klappt es nicht oder ich
>>> habe was vergessen... bin mit extbase auch noch nicht ganz so fit...
>>>
>>> grüße
>>> hendrik
>>>
>>> Am 04.06.2013 13:05, schrieb Udo Leimberger:
>>>> 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
>>>
>>> _______________________________________________
>>> TYPO3-german mailing list
>>> TYPO3-german at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
> 


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful - feel free to donate:
  -
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
  - https://flattr.com/profile/kaystrobach



More information about the TYPO3-german mailing list