Chatter Feed in popup?

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Is it possible to include a Chatter Feed in a popup? When I select my popup in the page builder, the Chatter Feed component disappears, so I suspect it can't be done. Doesn't stop me wanting it, of course.
Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,738 Points 5k badge 2x thumb
  • yearning for Chatter in popups

Posted 5 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,262 Points 20k badge 2x thumb
The one way to do it right now involves the Template Component and an iFrame:

1. Create your Action of type Popup --- it can be a PageTitle Action, Table Row Action, etc.

2. Drag a Template Component into your Popup, and use merge syntax to pull in the skuid__Social Visualforce Page in context of the record you want to see a Chatter Feed for:





The main limitation on this strategy is that the iFrame has to have a fixed height, so if you want to show a lot of Feed, you'll have to have a really big height attribute, and height can't be a percentage or auto-scroll, unfortunately.

Here's an example letting you show Chatter for Accounts from a Table on Accounts:



Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,738 Points 5k badge 2x thumb
That looks pretty good. I'll give it a go. Thanks!
Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,738 Points 5k badge 2x thumb
I nearly have this working, but not quite.

My use case is that I have a table of tasks (using the standard Task object) and I have a row action to open the popup. The Chatter Feed displays, but not in the context of the selected task, so I get one feed for every task in the table. I see that the Social Visualforce page reads $CurrentPage.parameters.id. Does the row action pass the selected task Id into that somehow?

(To be clear, the popup itself gets the context of the row just fine, as I have a field editor that is correctly rendering just the once.)
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,262 Points 20k badge 2x thumb
Two ?'s:
1. what Skuid version are you on? The Template Component did not properly interpret popup "context" until Skuid 3.18+. Latest Skuid version, the "mobile beta", is 3.20, and the Template Component properly handles popup context now.
2. Can you post the XML for you popup component, or for your page?
Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,738 Points 5k badge 2x thumb
This is in our "production" org, which is on v3.15. So it sounds like this rightly doesn't work for now.

I've shared the full page code here: https://www.dropbox.com/s/4dpm48ejiru...

Thanks.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,026 Points 20k badge 2x thumb
The solution Zach proposes above is now not necessary.  There is a simpler way.  You can now create a page include in a popup,  where you can put a Chatter Feed component.  See here: 

https://community.skuidify.com/skuid/topics/chatter_popup_for_task_list

Photo of Jack Sanford

Jack Sanford, Champion

  • 8,406 Points 5k badge 2x thumb
How can I get this to work in Communities? I tried cloning the skuid__Social page but it's not letting me due to the controller skuid.Social.

The newer method isn't working for me: https://community.skuidify.com/skuid/topics/chatter_popup_for_task_list
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,406 Points 5k badge 2x thumb
Nevermind! I forgot to include {{$Site.Prefix}}