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
BrokenBirdBrokenBird 

Custom Related List

I have a custom object that has many related list, for one of the list

I would like to use a custom VisualForce page, is this possible? I want

the parent to still follow its diplay layout except for this specific list.

 

At this moment I have a workaround I do not really like.

 

I created an extension controller for the parent,  which includes

 

 <apex:detail relatedlist="true"/>

 

and I could add custom code to display my special list in a form section,

however with this solution, I cannot hide the special list from the layout

if the user choose to display it, and my custom list is always at the end.

 

What I would like is let the admin decide where my list goes with the 

layout editor, and just change the way this list is presented. 

mtbclimbermtbclimber
You can't do this today. You could indicate relatedList=false on the detail component and then add back the relatedLists you want using apex:relatedlist and put your special list wherever you want in that presentation but your admin loses the ability to control which relatedlists are shown through the layout editor.
BrokenBirdBrokenBird

That is what I was affraid of, If at least I could have

 

 <apex:detail details="false" relatedlist="true"/>

 

 

That would let me do

 

 <apex:detail details="true" relatedlist="false"/>

 

 <form>

...

 </from>

 

 

 <apex:detail details="false" relatedlist="true"/>

 

at least like this my custom list could be squeezed between the details and the other lists.