Hello,

I'm trying to build a custom view of relational activity, but can't seem to find a place where guests can comment. I saw there was supposed to be a link to more advanced documentation for heartbeat, but the link was busted, and there seems to be very little included about integration with views. Is it possible to include react/comments in views?

Comments

Stalski’s picture

Status: Active » Closed (won't fix)

Sorry, The comments and heartbeat attachments can not work with streams built with views. There is views integration but heartbeat itself is in fact the query builder to fetch activity.

lestu’s picture

Has there been any progress perhaps?
I have the ID of the message in the views result row. Using a custom PHP views field, shouldn't it be possible to display the widget for this specific message?

I've tried, but I'm sure you know much better what is needed.
Can you give me any assistance on this?

Thanks,
Lestu

lestu’s picture

Status: Closed (won't fix) » Active
Stalski’s picture

Status: Active » Closed (fixed)

No I want create that anymore in drupal6. For drupal6 it is working just find with the row style plugin.
This feature will not be included in heartbeat views, however I never saw a case where the views query and result is better than the one you control yourself.
If the query is not enough, read some documenation on how to create your own stream. See #1180490: Complex heartbeat use case for more information. (reply)

lestu’s picture

Status: Closed (fixed) » Active

I know you don't want to do it. I'm a developer, I can do it myself, I'm just asking for a little bit of your knowledge.
So, shouldn't it be possible to display the widget just about anywhere if I have the ID of the message?

NathanM’s picture

Well, it might be better if you have the time and skill to properly style it yourself to perfectly suit your needs, but not everyone has the ability to do that. Moreover, there is an issue with integration of certain other modules. The fact that I can create my activities with comments in views and attach it to a FBSS block so that it automatically loads when I write a new status is one of the main reasons I'm using activity over heartbeat at this point in time.

Stalski’s picture

Status: Active » Closed (works as designed)

@NathanM Nice :) never tried it that way.
@lestu: the reason why I won't do it, is because it was designed without views integration. The refactoring is too time consuming and error introducing, that I would prefer to skip this for d6.
Drupal7 it's already built in and the concept is completely different.
I guess it could be possible but the time I need to investigate so I could brief you, takes most of the time. Priority for me now is drupal7 that will be more stable and mature in general. If you would give it a shot, I will review the code and everything but not more than that (at this time, in the future when I have more time, ...)

The biggest problem will be, with the approach in d6 that if you succeed, you'll see that there is no point in using a view. You could have easily created your own stream (HeartbeatAccess subclass). You can find documentation on Menhir blog and Heartbeat activity demo site for drupal6