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
RustyboyRustyboy 

Overrid standard button with custom controller

I want to override the standard SF view to a custom controller, but only standard controllers appear in the VF dropdown list. I need to either:

Find a way of overriding with a custom controller

OR

Switch off the SF behaviour (My problem is the recent items link in the home page takes users directly to the standard SF layout which I do not want users to have access to.

Any ideas?

Best Answer chosen by Rustyboy
Abhi_TripathiAbhi_Tripathi
Hi,

Go to 
Your Name --> Setup --> Customize --> Home --> Home Page Layout

Uncheck those links you don't want on home page.

Regards,
Abhi

All Answers

Abhi_TripathiAbhi_Tripathi
Hi ,

You can use standard controller with extension, that will be available on the list of page to override.

i.e. <apex:page standardController="Account" extension="MyAccountController" >

else you can remove those links from the Home Page Layout that you don't want to be used by the user.
because you can't change the rederiction of links

Regards,
Abhi Tripathi
SFDC Certified Developer
RustyboyRustyboy
Thanks Abhi,

Do you know how to remove the links from the jome page layout?
Abhi_TripathiAbhi_Tripathi
Hi,

Go to 
Your Name --> Setup --> Customize --> Home --> Home Page Layout

Uncheck those links you don't want on home page.

Regards,
Abhi
This was selected as the best answer
RustyboyRustyboy
Got it, thanks