Forums / Setup & design / Several siteaccess and login: solved
Pascal France
Tuesday 30 May 2006 2:20:42 am
Hi,
This reply is bound to this post: http://ez.no/community/forum/setup_design/node_101458/re_several_siteacess_and_loginI did a wrong manipulation and the post disappeared. I'm really sorry.
The solution to my problem is to set <u>only</u>:
[TemplateSettings] TemplateCache=disabled
in site.ini.append.php and nothing else in other file.
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
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 !
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.tplThe 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 ?!
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