Sunday 28 May 2006 11:58:11 pm
Hi Marcin,
Yes, it is the image of the logged user I want to display. I don't know why, but:
{def $user=fetch( 'user', 'current_user' )}
{if $user.is_logged_in}
{attribute_view_gui attribute=$user.data_map.image image_class=small}
{/if}
does not return anything. As I told in my first post, {$user|attribute(show)} doesn't display any "image" attribute, then I think "data_map.image" can't work.
The admin interface uses this template:
design/admin/templates/content/edit.tpl
which includes:
design/admin/templates/content/edit_attribute.tpl
which uses this other one:
design/standard/templates/content/datatype/edit/ezimage.tpl
to display the user image in the user edit view (this line: {attribute_view_gui image_class=ezini( 'ImageSettings', 'DefaultEditAlias', 'content.ini' ) attribute=$attribute} displays the user image).
First, I don't understand how edit_attribute.tpl calls ezimage.tpl ? Second, I don't understand how to reuse:
{attribute_view_gui image_class=ezini( 'ImageSettings', 'DefaultEditAlias', 'content.ini' ) attribute=$attribute}
Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|