[TYPO3-mvc] Re: HowTo output usergroup from fe_user
Heinz Schilling
webdesign at webtekk.ch
Fri May 3 18:48:34 CEST 2013
Quote: Thomas Nussbaumer wrote on Thu, 02 May 2013 18:42
----------------------------------------------------
> Hi, see http://api.typo3.org/extbase/60/
>
> public getUsergroup()
>
> Returns the usergroups. Keep in mind that the property is called
> "usergroup" although it can hold several usergroups.
>
> You need something like: <f:for each="{users.usergroup}" as="group">
> ....{group.title} ...{group.description}
Hi Thomas
Thank you. After some trial an error I think I understood. I have to change the fluid template like this:
File: Vendor/Myextension/Resources/Private/Templates/User/list.html
<table>
<f:for each="{users}" as="user">
<tr>
<td>{user.username}</td>
<td>{user.password}</td>
<td>
<f:for each="{user.usergroup}" as="usergroup">
{usergroup.title}
</f:for>
</td>
</tr>
</f:for>
</table>
Now it works.
Greetings, Heinz
More information about the TYPO3-project-typo3v4mvc
mailing list