Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

$CurrentPage.Name

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 pages...to build sidebar with links to existing $Page –  Natallia May 7 at 21:19

Your Answer

 
discard

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.