Forums / Setup & design / / Comment22123

Author Topic

Pascal France

Monday 29 May 2006 1:18:52 pm

Comment22123

Hi,

I created a username.tpl witch contains:

  1 {def $user=fetch( 'user', 'current_user' )}
  2 {if $user.is_logged_in}
  3 <div id="user_avatar">
  4 {attribute_view_gui attribute=$user.contentobject.data_map.image image_class=small}<br />
  5 {$user.contentobject.name}
  6 </div>
  7 {/if}
  8 {undef $user}

and then, I tried these two solutions:
First one, in pagelayout.tpl:

 77 {cache-block expiry=1}
 78 {include uri='design:username.tpl'}
 79 {/cache-block}

Second, in my_plain/site.ini.append.php:

 49 [ContentSettings]
 50 ViewCaching=disabled

but I have always the same problem (even I disable ViewCaching in site.ini and set "CachedViewModes=").

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