Friday, March 14, 2014

Remove Customize page link from a Apex:detail Visualforce page

The apex detail tag has a title attribute. Setting this to false removes the links and title block at the top of the page. The title blocks can be added back by the apex:sectionheader tag.
Example:
<apex:page standardController="Account">
    <apex:sectionHeader title="Account1" subtitle="Test 1"/>
    <chatter:feed entityId="{!$CurrentPage.parameters.id}"/>
    <apex:detail subject="{!$CurrentPage.parameters.id}" title="false" relatedList="true"/>
</apex:page>

No comments:

Post a Comment