[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TYPO3-dev] Render fluid template from a string instead of afile



Hi Saris,

Thanks that was easy.

Stupid me, that happen when the day was too long, not reading the method
description correctly.

Christian

> -----Original Message-----
> From: Frans Saris
> 
> Hi Christian,
> 
> Try setTemplateSource($string)
> 
> Gr. Frans
> Op 6 nov. 2014 21:32 schreef "Christian Ludwig" <[email protected]>:
> 
> > Hi,
> >
> > I am looking for an easy way to use the
> > TYPO3\CMS\Fluid\View\StandaloneView class to render a fluid template
> > that comes from another source (database) instead from a file.
> >
> > Normally you simply use the setTemplatePathAndFilename() method to
> > 'load' a template from a file, now what I want is read the fluid
> > template from database assign variables and return the rendered
string.
> > In addition it would be great to be able to use a layout from file.
> >
> > When looking into the code, it seems like it is not possible to do
so
> > without extending the AbstractTemplateView and overwriting the
render
> > method.
> >
> > Has anyone any other ideas or a ready to use code?
> >
> > Thanks
> > Christian
> > _______________________________________________
> > TYPO3-dev mailing list
> > [email protected]
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
> >
> _______________________________________________
> TYPO3-dev mailing list
> [email protected]
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
> 
> 

_______________________________________________
TYPO3-dev mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev