Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I am overriding the standard Account page.How to add the logo of Account and title of the record.For Example in standard Account page we have chatter and logo Account of Account and Title of Account.In my case I just need logo and title of account

<apex:page standardController="Account" >
<apex:pageBlock>
<apex:pageBlockSection>
<apex:outputField value="{!Account.name}"/>
<apex:outputField value="{!Account.Phone}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
share|improve this question

1 Answer 1

up vote 5 down vote accepted

You can use the apex sectionheader to do this:

<apex:page standardController="Account" >
<apex:sectionHeader title="Account" subtitle="{!Account.Name}"/>
<apex:pageBlock>
<apex:pageBlockSection>
<apex:outputField value="{!Account.name}"/>
<apex:outputField value="{!Account.Phone}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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