Skip to content

Instantly share code, notes, and snippets.

@srujan21
Last active January 6, 2017 10:09
Show Gist options
  • Save srujan21/7c46ca595da5dd7427f885244e6b7d29 to your computer and use it in GitHub Desktop.
Save srujan21/7c46ca595da5dd7427f885244e6b7d29 to your computer and use it in GitHub Desktop.
Panel to distinguish between guest and registered
<apex:outputPanel rendered="{!ISPICKVAL($User.UserType,'Guest')}">
Not logged in. Code for log in form goes here.
</apex:outputPanel>
<apex:outputPanel rendered="{! NOT(ISPICKVAL($User.UserType,'Guest'))}">
Logged in. Code for link to post log in landing page or something else.
</apex:outputPanel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment