[TYPO3-mvc] Determine f:layout dynamically

Markus Klein klein.t3 at mfc-linz.at
Thu Oct 10 16:10:51 CEST 2013


Hi Jigal!

Thanks a lot. A feature I didn't know. ;-)

Kind regards
Markus

------------------------------------------------------------
Markus Klein
TYPO3 CMS Active Contributors Team Member


> -----Original Message-----
> From: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-
> project-typo3v4mvc-bounces at lists.typo3.org] On Behalf Of Jigal van Hemert
> Sent: Thursday, October 10, 2013 3:54 PM
> To: typo3-project-typo3v4mvc at lists.typo3.org
> Subject: Re: [TYPO3-mvc] Determine f:layout dynamically
> 
> Hi,
> 
> On 10-10-2013 14:53, Markus Klein wrote:
> > Hi!
> >
> > It's not so easy. ;-)
> >
> > My usecase here is to render E-Mails with a Standalone template.
> >
> > The template shall render HTML and Text E-Mails, hence it should switch
> the layout.
> > <f:layout name="{f:if(condition: isHtml, then:'MailHtml',
> > else:'MailText')}" />
> 
> In this case I would use two different formats (like you can set in
> FLUIDTEMPLATE.format). The default format is 'html', which uses the
> template with .html extension. If you switch to format 'txt' fluid would use
> the *.txt templates.
> 
> --
> Jigal van Hemert
> TYPO3 CMS Active Contributor
> 
> TYPO3 .... inspiring people to share!
> Get involved: typo3.org
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list