Re: [TYPO3-english] fluid list

2013-11-20 Thread Tomasz Krawczyk
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

Re: [TYPO3-english] fluid list

2013-11-20 Thread Markus Klein
-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

Re: [TYPO3-english] fluid list

2013-11-20 Thread Tomasz Krawczyk
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.

Re: [TYPO3-english] fluid list

2013-11-19 Thread Markus Klein
-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

[TYPO3-english] fluid list

2013-11-18 Thread Tomasz Krawczyk
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

Re: [TYPO3-english] fluid list

2013-11-18 Thread Tomasz Krawczyk
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