We need to know if is possible the following.
We want to replace a related list to a Visualforce Page
that we create. We want to change it in the page layout. Is it possible?
Yes and no. You can add a Visualforce Page
to your Page Layout
as long as you set the StandardController
to the object in question. However, pages included as such will be in a different section of the page, so you don't have quite as much control in that regard. The lowest you can place them is directly above the rest of your standard Related Lists
.
Here is a basic example of what the page would look like. The key here is the standardController
attribute, which enables you to add the page to your layout or use it in button overrides, custom button implementations, etc.
<apex:page standardController="MyObject__c">
<apex:relatedList list="Children__c" />
</apex:page>
relatedList
component? You can build it out using pageBlockTable
instead. There are many examples online if you look around a bit.
You can refer a sample implementation in this link: Customize Related Lists using VisualForce and Apex