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
Will EdwardsWill Edwards 

What entityId to a put for a custom VF page?

I'm trying to put a Chatter feed on a custom VF page. I thought I could to the following:

<apex:page >
<chatter:feedWithFollowers entityId="{!$CurrentPage.Id}" />
</apex:page>

But there's no Id associated with the page. Any tips? Thanks.
Will EdwardsWill Edwards
Thanks.
Emmanuel Cruz BEmmanuel Cruz B
Hi will,

The Id should be related to a User or a Record in the URL. Try the following:
<apex:page >
<chatter:feedWithFollowers entityId="{!$CurrentPage.parameters.Id}" />
</apex:page>
To try it go to .../apex/YourPage?Id=YourIdHere

Regards
Will EdwardsWill Edwards
Emmanuel, I'm trying to associate the Id with the actual VF page itself. I'm guessing that VF pages don't actually have their own Ids?
Emmanuel Cruz BEmmanuel Cruz B
Yes, they have an Id but you are not able to add chatter feed related to a visualforce page, you are only able to add chatter feed to Users, Dashboards, Reports or Records.