+ Start a Discussion
cignuscignus 

Changing controller or adding extension while keeping the layout

I want to add some extended functionality to contact page. I need to keep the current layout and add some buttons and fields to it. 

If I want to use a custom controller or add a controller extension, I need to build the page from the scratch.

I'm looking for a way to keep the standard page layout and apply some minor changes. 

Chamil MadusankaChamil Madusanka

There are few ways to achieve this requirement.

 

  1. Create a visualforce with your additional fields. Use Contact as the standard controller and use a extension for your additional functionality. Then embed this visualforce page into your current contact page layout.
  2. Create a visualforce page with apex:detail tag. It will be populate your current contact page layout in visualfroce page. Then you can add your additional fields and buttons in page and use a controller or standard controller and extension for your addtional functionality

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

cignuscignus

Dude! Where are the spaces?

cignuscignus

I will check these,

Thanks

Chamil MadusankaChamil Madusanka

Sorry. Something has happened when saving. Now it is correct.