Attention
TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.
avatar¶
Render the avatar markup, including the <img>
tag, for a given backend user.
Examples¶
Default¶
<be:avatar backendUser="{user.uid}" size="32" showIcon="true" />
Output:
<span class="avatar">
<span class="avatar-image">
<img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/avatar/avatar-default.svg" width="32" height="32" />
</span>
</span>
If the given backend user hasn't added a custom avatar yet, a default one is used.
Inline notation¶
{be:avatar(backendUser: user.id, size: 32, showIcon: 'true')}
Output:
<span class="avatar">
<span class="avatar-image">
<img src="/fileadmin/_processed_/7/9/csm_custom-avatar_4ea4a18f58.jpg" width="32" height="32" />
</span>
</span>