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="list"><h2>
<f:if condition="{members.relationship}">
<f:then><f:translate key="tx_kbbteam_domain_model_members.employer"
/></f:then>
<f:else><f:translate key="tx_kbbteam_domain_model_members.employee"
/></f:else>
</f:if></h2>
<div class="short-text">
<h3><f:link.action action="show" arguments="{members :
members}">{members.firstName} {members.lastName}</f:link.action></h3>
{members.title}
<p><strong><f:translate
key="tx_kbbteam_domain_model_members.tel_short" /> {members.phoneNumber}
<f:translate key="tx_kbbteam_domain_model_members.tel_extension" />:
{members.phoneExtension}, e-mail: <f:link.email
email="{members.email}">{members.email}</f:link.email></strong></p>
<p>
<f:format.crop maxCharacters="200"
append=" ...">{members.experience}</f:format.crop>
<f:link.action action="show"
arguments="{members : members}">
<f:translate
key="tx_kbbteam_domain_model_members.more" />
</f:link.action>
</p>
</div>
</div>
</f:for>
Variables are:
/**
* Relationship with the KBB company
*
* @var \integer
* @validate NotEmpty
*/
protected $relationship;
/**
* First name
*
* @var \string
* @validate NotEmpty
*/
protected $firstName;
/**
* Last name
*
* @var \string
* @validate NotEmpty
*/
protected $lastName;
/**
* Title
*
* @var \string
* @validate NotEmpty
*/
protected $title;
/**
* Phone number
*
* @var \string
* @validate NotEmpty
*/
protected $phoneNumber;
/**
* Phone extension number
*
* @var \string
* @validate NotEmpty
*/
protected $phoneExtension;
/**
* Email address
*
* @var \string
* @validate NotEmpty
*/
protected $email;
/**
* Description of the experience
*
* @var \string
* @validate NotEmpty
*/
protected $experience;
regards
Tomek
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english