+ Start a Discussion

Replacing Opportunity related list with a customer page on Contact object

I have a requirement wherein I have to replace the Opp. related list with custom VF page to support filters. Can anyone give some hints? Thanks.
1. Remove the standard Opportunity related list in the page layout.
2. Create a new visualforce page to display related opportunity records in a table formate and filter conditions. Make sure that you are using standard controller in the visualforce page as Contact, else you can't add the visualforce page in the contact pagelayout.
3. Add the new visualforce in the contact pagelayout as inline visualforce page.
can anyone provide me with a sample code?