Customizing the User Interface
See Also • •
Overriding a Standard Button on page 64 Dynamically Updating a Page on page 88
Redirecting to a Standard Object List Page Problem You want to redirect a user to the standard account list page. Solution For buttons or links that navigate a user to the accounts tab, redirect them to a Visualforce page with the following content: <apex:page action="{!URLFOR($Action.Account.List, $ObjectType.Account)}"/>
The user will see a page that resembles the following:
Figure 12: Overriding the Account Detail Page Discussion The Visualforce page can also refer to other standard objects, such as contacts, by changing the reference to the standard object. For example: <apex:page action="{!URLFOR($Action.Contact.List, $ObjectType.Contact)}"/>
See Also • • •
Overriding a Standard Button on page 64 Overriding a Standard Page on page 85 Overriding a Page for Some, but not All, Users on page 93 87