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
Dev_MayuriDev_Mayuri 

How to display Chatter in <apex:detail> tag ?

Hi,

 

I am overriding the Opportunity detail page with the <apex:detail> tag for Opportunity.

But, I am not able to see Chatter and Follow options due to this.

I tried using showChatter  = true in <apex:detail> tag and showHeader = false in <apex:page> tag. This displays chatter but hides header. This is not the expected behavior for us since, we need to show header as well.

 

Please let me know how we can achieve the same.

 

Thanks and Regards,

Jia HuJia Hu

<apex:page standardController="Opportunity">
<chatter:feed entityId="{!Opportunity.Id}"/>
<apex:detail subject="{!Opportunity.Id}" relatedList="false" title="false" />
</apex:page>

Jia HuJia Hu

or

 

<apex:page standardController="Opportunity" showHeader="true">
<apex:detail subject="{!Opportunity.Id}" relatedList="true" title="true" showChatter="true" />
</apex:page>

Jia HuJia Hu

Maybe the second one is better for your case.