Author Topic

Łukasz Serwatka

Thursday 02 June 2005 3:24:36 am

Comment19033

Hi Andrew,

You can use simple fetch

  {def $user=fetch( user, current_user )}
  
  {* if Anonymous show the name *}
  {if eq( $user.contentobject.id, 10 )}
      {$user.contentobject.name}
  {else}
      {$user.contentobject.data_map.nickname.data_text}
  {/if}

Should works if nickname is text line datatype. For < 3.6 you should use section insted of if and let insted of def

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog