Avatar ViewHelper <be:avatar>
ViewHelper to render the avatar markup (including the <img>
tag) for a given backend user. If the given backend user hasn't added a custom avatar yet, a default one is used.
<be:avatar backendUser="{user.uid}" size="32" showIcon="true" />
Copied!
Go to the source code of this ViewHelper: AvatarViewHelper.php (GitHub).
Arguments
The following arguments are available for the avatar ViewHelper:
backendUser
-
- Type
- int
- Default
- 0
uid of the backend user
showIcon
-
- Type
- bool
- Default
- false
show the record icon as well
size
-
- Type
- int
- Default
- 32
width and height of the image