function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Adam CoppinAdam Coppin 

How to stop overriding the page title when embedding Visualforce page?

Hi There,

Sounds small, but I think I'm missing something... I've got a very small and simple Visualforce page that adds the Trove file upload interface to a custom object - everything is working greatt (if you've not checked out Trove, it's well worth it if you're running o365!).  The problem is that the Visualforce page that you add to the page layout is changing the page title.  I used to have a page title that was the name of the custom object record, but since adding the Visualforce page (and removing the title attribute) I've lost the custom object record name from the page title and just have the site default.

Is there some way to revert to the original page title when I'm embedding a visualforce page?

Thanks,

Adam
Best Answer chosen by Adam Coppin
GauravGargGauravGarg
Hi Adam,

We could use sectionHeader component to implement this functionalit. Below is the link to use <apex:SectionHeader>

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_sectionHeader.htm

Hope this helps you. 

Thanks,
Gaurav
Skype: gaurav62990

All Answers

GauravGargGauravGarg
Hi Adam,

We could use sectionHeader component to implement this functionalit. Below is the link to use <apex:SectionHeader>

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_sectionHeader.htm

Hope this helps you. 

Thanks,
Gaurav
Skype: gaurav62990
This was selected as the best answer
Adam CoppinAdam Coppin
Thanks Gaurav!  I actually didn't use a sectionHeader, but your link lead me to the syntax for inputting the record name back into the title with the title="{!custom__c.Name}" attribute!
GauravGargGauravGarg

your welcome Adam. 

Thanks,

Gaurav