Forums / General / User Image / Comment32057

Author Topic

David Eriksson

Wednesday 10 August 2005 4:49:54 am

Comment32057

If you are in page_layout, you already have the user in $current_user. If you're in a view template, you will have to fetch it first.

{def $user=fetch('user', 'current_user')}
{if $user.data_map.image.has_content}
    {attribute_view_gui attribute=$user.data_map.image image_class=small}
{/if}

/David