Skip to content

Instantly share code, notes, and snippets.

@ganmahmud
Created November 23, 2018 09:44
Show Gist options
  • Save ganmahmud/efe84ce64720fac7279863ee9e8739e7 to your computer and use it in GitHub Desktop.
Save ganmahmud/efe84ce64720fac7279863ee9e8739e7 to your computer and use it in GitHub Desktop.
Create a simple Visualforce page that displays an image
<apex:page showHeader="false">
<apex:pageBlock >
<apex:pageBlockSection columns="2">
<apex:pageblocksectionitem >
{! $User.FirstName } {! $User.LastName }
({! $User.Username })
</apex:pageblocksectionitem>
<apex:pageblocksectionitem >
<apex:image url="https://developer.salesforce.com/files/salesforce-developer-network-logo.png"/>
</apex:pageblocksectionitem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment