Tuesday 30 May 2006 11:26:01 am
I found the solution: I did a userinfo.tpl which contains:
1 {set-block scope=root variable=cache_ttl}0{/set-block}
2 {def $user=fetch( 'user', 'current_user' )}
3 {section show=eq($user.is_logged_in|not)}
4 <div id="userinfo">
5 {attribute_view_gui attribute=$user.contentobject.data_map.image image_class=small}<br />
6 {$user.contentobject.name}
7 </div>
8 {/section}
9 {undef $user}
and then I do an include in pagelayout.tpl The trouble I had came from the include has to be done out of {section}{/section} and/or {cache-block}{/cache-block} However, there is something strange: I have to put "|not" (line 3) in order the user infos are displayed once users are logged in ?! 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
|