Use Visualforce Area home page components to add dynamic content to your home page. For
example, you can present content from partner apps, display charts with the Reports and
Dashboards REST API, or add a canvas app to the home page.
Required Editions
| Available in: Salesforce Classic |
| Available in: All Editions |
The Visualforce page that you choose for the component can use a standard or custom
controller. You can include JavaScript in your Visualforce page, but because the component is
rendered in an iframe on the home page layout, the JavaScript can’t interact with the page
that contains the component.
Sample Usage
If your Visualforce Area home page component displays in the sidebar, you can dynamically
get the record ID and top-level URL of the page that the component is being displayed on by
using the $CurrentPage global variable in your Visualforce markup.
Using $CurrentPage, you can access the query string parameters for the
page by specifying the parameters attribute, after which you can access
each individual
parameter:
$CurrentPage.parameters.parameter_name
The
parameters for record ID and top-level page URL are, respectively, id and
sfdcIFrameOrigin. For more information, see Getting Query String
Parameters in the Visualforce Developer Guide.