Several siteaccess and login: solved

Several siteaccess and login: solved

Tuesday 30 May 2006 2:20:42 am - 3 replies

Author Message

Pascal France

Tuesday 30 May 2006 3:59:52 am

At the end, this is not a good solution because now, when I add an article I can't see it when I log in to "my_plain" siteaccess.

I really don't understand anything !

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

Pascal France

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

liu spider

Tuesday 30 May 2006 5:22:00 pm

eq($user.is_logged_in|not)
should be
$user.is_logged_in

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.