+ Start a Discussion
smita jha 8smita jha 8 

how to work with chatter on visualforce page?

I have requirement that i have a object with 2 field topic name and topic description. in 1 vf pafe after clicking on topic name i have to show a page where topic name and description will come as chatter feed . i have to show comment and like also.
could any one tell me how to do chatter .
Phillip SouthernPhillip Southern
Have you checked chatter:feed VF tag?  I'm not sure on topics, but if that is an Id you can reference you can put that in as the entityId.
Phillip SouthernPhillip Southern
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_chatter_feed.htm
smita jha 8smita jha 8
HI Phillip,
Thanks for suggesion .
i am not getting code for how to use <chatter:feed> ?
Do u have any sample code ,could u please share me or else any site where i can get sample code related to chatter tags ?

Thanks in advance.
Phillip SouthernPhillip Southern
Hi, check the link I posted for your options...the only requirement is the entityId for the salesforce record so something like:

<chatter:feed entityId='{!recordIdFromController}' />

 
smita jha 8smita jha 8
HI Phillip,

yes i understand that after giving record id of a record it will show all the related post of that record id.
but i want to show my custom field value of my custom objcet as post in chatter.
suppose i have 1 object Disscusion__c and it has 1 field topic_Name__c. 
now i want th show the value in topic_Name__c field as chatter post .

Thanks,
Smita