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

Question about Contacts tab?

Hi, I was wonder if you can add your own block of information onto the standard contacts page. I like what is on there already but I do not want to override the page but add a section on the page. 


Thanks for any help you can give. 


The usual way is to create an apex page and then place the page onto the page layout.



<apex:page standardController="Contact" extensions="myExtension"> <!-- do stuff here --> </apex:page>

You need to make sure that you size the component after laying it on thepage layout, or it may be cut off (or use scrollbars). I believe there will be a way to dynamically resize in a future release.


I tried that in my salesforce account and it would not let me create that newExtension.

Yes you can , in the page layout section you can add 'Visualforce page' or 'S-control page' .


or just related list 


I get this error 

Error: Apex class 'myExtension' does not exist

 Then when I go to create a class, I can not create an apex class. My developer account I can but not my non profit account. 


myExtension is the relationship name between the contact object and the object that you want to access.

You should create it first before you can use.

I figured out what was going on. The reason I could not create it was that I was not in my sandbox. I forgot I have to create it there and move it over.