Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
$CurrentPage
Usage
Use this global variable in a Visualforce page to reference the current page name ($CurrentPage.Name) or the URL of the current page ($CurrentPage.URL). Use $CurrentPage.parameters.parameterName to reference page-request parameters and values, where parameterName is the request parameter being referenced. parameterName isn't case-sensitive.
Example
1<apex:page standardController="Account">
2 <apex:pageBlock title="Hello {!$User.FirstName}!">
3 You belong to the {!account.name} account.<br/>
4 You're also a nice person.
5 </apex:pageBlock>
6 <apex:detail subject="{!account}" relatedList="false"/>
7 <apex:relatedList list="OpenActivities"
8 subject="{!$CurrentPage.parameters.relatedId}"/>
9</apex:page>