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
Prasad RuwanpathiranaPrasad Ruwanpathirana 

Is it possible to overwrite standard page layout loading method using apex class?

I need to overwrite and add some logic when loading the standard opportunity page. Therefore I need to overwrite apex logic. If this is possible what is the method that should be overwrite?
Best Answer chosen by Prasad Ruwanpathirana
Amol SolankiAmol Solanki
You cannot overwrite a standard object page ,You can add a VF page and include a standard controller and then include the logic in extension methods.

All Answers

sfdc550sfdc550
You need to add another Visualforce page with opportunity standard controller to override Standard Opportunity page
PratikPratik (Salesforce Developers) 
Hi Pradad,

You don't need to override any existing method. 
Create a new VF page where you can call standardcontroller = opportunity to override standard page.
If you want to add any additional language, you can add extension to the Vf page.

Thanks,
Pratik
Amol SolankiAmol Solanki
You cannot overwrite a standard object page ,You can add a VF page and include a standard controller and then include the logic in extension methods.
This was selected as the best answer