Overriding Tabs Using a Standard List Controller
Pages that use standard list controllers can be used to override
tabs. For example, if you create a page named overrideAccountTab that is associated
with the Account standard list controller:
Then, you can override the Account tab
to display that page instead of the standard Account home page.
<apex:page standardController="Account" recordSetVar="accounts" tabStyle="account">
<apex:pageBlock >
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column value="{!a.name}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
- From the object management settings for accounts, go to Buttons, Links, and Actions.
- Click Edit for the Accounts Tab.
- From the Visualforce Page drop-down list, select the overrideAccountTab page.
- Click Save.