[TYPO3-english] fluid list

Markus Klein klein.t3 at mfc-linz.at
Wed Nov 20 21:33:00 CET 2013


Hi!

Why a lookp?

It does not need 2 DB lookups. You're doing the lookups in the repository which is called by your controller.
The resultset is then forwarded (assigned) to Fluid. So the foreach and if tags in the code only operate on memory.

Kind regards
Markus

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

> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
> bounces at lists.typo3.org] On Behalf Of Tomasz Krawczyk
> Sent: Wednesday, November 20, 2013 8:16 PM
> To: typo3-english at lists.typo3.org
> Subject: Re: [TYPO3-english] fluid list
> 
> W dniu 2013-11-19 10:40, Markus Klein pisze:
> > Hi!
> >
> > Quick and dirty solution:
> >
> > <div class="list">
> > <h2><f:translate key="tx_kbbteam_domain_model_members.employer"
> > /></h2> <f:for each="{memberss}" as="members">
> >    <f:if condition="{members.relationship}">
> >      <div class="short-text">....</div>
> >    </f:if>
> > </f:for>
> > </div>
> >
> > <div class="list">
> > <h2><f:translate key="tx_kbbteam_domain_model_members.employee"
> > /></h2> <f:for each="{memberss}" as="members">
> >    <f:if condition="{members.relationship}"><f:else>
> >      <div class="short-text">....</div>
> >    </f:else></f:if>
> > </f:for>
> > </div>
> >
> > Kind regards
> > Markus
> >
> Marcus,
> 
> could this be done in one loop? I'm new to fluid but I think that solution
> requires 2 sql queries.
> 
> regards
> Tomek
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list