Skip to content

Instantly share code, notes, and snippets.

@brucem
Created May 5, 2011 02:38
Show Gist options
  • Save brucem/956436 to your computer and use it in GitHub Desktop.
Save brucem/956436 to your computer and use it in GitHub Desktop.
Checking if user is loggedin in eZpublish template
{if is_set($current_user)|not}{def $current_user=fetch( 'user', 'current_user' )}{/if}
{if $current_user.is_logged_in}
{* Show content for logged in users *}
{else}
{* Show content for anon users *}
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment