Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to get the display name of the visualforce page via expression like {!$} or there are other simmilar ideas how to achieve this?

share|improve this question

See $CurrentPage

Referencing another page

The Partner API has the ApexPage sObject that can be used to get the API name and MasterLabel for the Visualforce pages in an Org. I don't think you can directly access this through Apex.

Instead you can get a PageReference for any Visualforce page using the syntax Page.existingPageName. Again, this isn't going to give you the name of the Visualforce page.

share|improve this answer
I'd like to use not current build sidebar with links to existing $Page – Natallia May 7 '14 at 21:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.