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
Stefan FellnerStefan Fellner 

Extend Standard Controller

Hello,

how can I keep all the InputFields of the Contact standard controller by extending it with my own controller?

My goal is to have the same fields and attributes as shown in the image below, but having one additional component to it.
Contact View

Thanks
Stefan FellnerStefan Fellner
I have solved this issue.

The trick is to use the "Apex detail" attribute in my Visualforce page. This is how I used it:
 
<apex:page sidebar="true" showheader="true" standardController="Contact" extensions="ContactLocationController">
    <apex:detail subject="{!Contact.Id}" relatedList="true" title="false"/>
    ....my extension components...
</apex:page>