6

This question already has an answer here:

I've added a profile recently and I want to display an extra button for that profile on the visualforce page. I've tried a couple of things but it doesn't seem to work. Here is what I've tried:

<apex:outputPanel id="loggedAtkins" layout="block" 
      rendered="{!AND(ISPICKVAL($User.UserType,'Atkins'), $Site.LoginEnabled)}" >    
 </apex:outputPanel>

I've sucessfully did it for Guest and not guest user accounts using this method

<apex:outputPanel id="notlogged" layout="block" 
          rendered="{!AND(ISPICKVAL($User.UserType,'Guest'), $Site.LoginEnabled)}" >

<apex:outputPanel id="logged" layout="block" 
                   rendered="{!NOT(ISPICKVAL($User.UserType,'Guest'))}" >      

Does anyone know how to show certain information only for specific users.?

marked as duplicate by AtulRajguru9, Ratan Paul, martin, Mohith Shrivastava, crmprogdev Mar 22 '16 at 15:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4

it works when you use the global profile variable:

rendered="{!$Profile.Name == 'Your Profile Name'}"

Not the answer you're looking for? Browse other questions tagged or ask your own question.