Newer Version Available
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.
1swfobject.registerObject("clippy.codeblock-0", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17<apex:page standardController="Account" recordSetVar="accounts" tabStyle="account">
18 <apex:pageBlock >
19 <apex:pageBlockTable value="{!accounts}" var="a">
20 <apex:column value="{!a.name}"/>
21 </apex:pageBlockTable>
22 </apex:pageBlock>
23</apex:page>To override the tab for Account:
- From Setup, click .
- Click Edit for the Accounts Tab.
- From the Visualforce Page drop-down list, select the overrideAccountTab page.
- Click Save.