Newer Version Available

This content describes an older version of this product. View Latest

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:
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>
Then, you can override the Account tab to display that page instead of the standard Account home page.
To override the tab for Account:
  1. From Setup, click Customize | Accounts | Buttons, Links, and Actions.
  2. Click Edit for the Accounts Tab.
  3. From the Visualforce Page drop-down list, select the overrideAccountTab page.
  4. Click Save.

Make sure you have made this page available to all your users by setting the page level security appropriately.

Note