I have created one vf page to show details of Account record. On page, Except "Opportunities" related list I want to show all other related lists. I was trying with code as shown below but it is not working-

<apex:page showHeader="false" standardController="Account">
        <apex:relatedList list="Opportunities" rendered="false" />

Any help/suggestion is appreciated...

1 Answer 1


Its an all or nothing for related list in detail. So the best way to do this is set related list to false in detail and manually display the related list as you need.

<apex:page standardController="Account">
   <apex:detail subject="{!account.ownerId}" relatedList="false" title="false"/> 
   <apex:relatedList list="Contacts">
      <apex:facet name="header">Titles can be overriden with facets</apex:facet> 
   <apex:relatedList list="Cases" title="Or you can keep the image, but change the text" />

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .