W dniu 2013-11-19 10:40, Markus Klein pisze:
Hi!
Quick and dirty solution:
div class=list
h2f: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
-english@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
h2f:translate key=tx_kbbteam_domain_model_members.employer
//h2 f:for each={memberss} as=members
f:if condition
W dniu 2013-11-20 21:33, Markus Klein pisze:
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.
-Original Message-
From: typo3-english-boun...@lists.typo3.org [mailto:typo3-english-
boun...@lists.typo3.org] On Behalf Of Tomasz Krawczyk
Sent: Tuesday, November 19, 2013 7:25 AM
To: typo3-english@lists.typo3.org
Subject: Re: [TYPO3-english] fluid list
W dniu 2013-11-18 22:10, Markus
Hi list!
I'm working on my first site based on fluid templates.
I made and extension with company employers and employees list. They are
in one table containing whole team. I would like to list employers and
then employees. The problem is that I want to add headers Employers and
Employees
W dniu 2013-11-18 22:10, Markus Klein pisze:
Hi!
Please post your fluid template and the variables you assign in the controller.
Kind regards
Markus
Currently my template prints Employers/Employees for every member
f:for each={memberss} as=members
div class=listh2