Howto show user info in pagelayout.tpl

Author Message

Vegard Hansen

Friday 24 October 2003 12:34:04 am

Hi, i want to show some user information after the user has logged in. Like Welcome UsersName. Log out.

Anyone has the code for this?

Adolfo Barragán

Friday 24 October 2003 2:58:54 am

I do it so:

{section show=eq($current_user.contentobject_id,$anonymous_user_id)}
<a href={"user/login/"|ezurl}>Login</a> | <a href={"user/register"|ezurl}>Register</a>
{section-else}
<a ref={"user/logout/"|ezurl}>Logout ({$current_user.contentobject.name|wash})</a>
{/section}

Regards
Adolfo Barragán

Vegard Hansen

Friday 24 October 2003 5:18:49 am

Thanks alot!

That helps me for a lot of work.. :)

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