You need to sign in to do that
Don't have an account?
Brian Chipman 4
Override the standard detail page with a VF page using a custom controller
We have a Visualforce page created for us a while ago which we would like to use to override the standard Account Detail page. However, it uses a custom controller, like this:
<apex:page controller="My_CustomController">
When I go to Buttons, Links, and Actions for this object to the View action, the page does not appear in the drop down list of pages available for override use. My understanding is because this page does not use the stand controller. Any way to get around this and use this page for override?
Ultimately, I would like to conditionally oveerride based on Profile and I think I can do that, but it seems like I need to override for everyone first as per the above but I can't seem to do that with this page.
<apex:page controller="My_CustomController">
When I go to Buttons, Links, and Actions for this object to the View action, the page does not appear in the drop down list of pages available for override use. My understanding is because this page does not use the stand controller. Any way to get around this and use this page for override?
Ultimately, I would like to conditionally oveerride based on Profile and I think I can do that, but it seems like I need to override for everyone first as per the above but I can't seem to do that with this page.
All Answers
Unknown constructor 'My_CustomController.My_CustomController(ApexPages.StandardController controller)'
You need to modify the Apex class as well, and change its constructor to look like this: Any chance you could share the code for both the visualforce page and the controller class? It will be easier for me to debug.
Added 'class' back in: Get: Expecting '{' but was: '('
It would greatly help if I saw the original My_CustomController class in its entirety.