Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to integrate Heartbeat with the Domain Access module? I need to display public user activities per domain. Each node is assigned to one domain only. At the moment heartbeat displays activities from all domains on each domain.
Is there any chance I can limit it somehow?
Comments
Comment #1
Stalski CreditAttribution: Stalski commentedWell , i am planning to add a tag system to messages. Maybe messages could be filtered per domain that way. While fetching the messages, they would be with a filter "only for that domain".
I will look into this. I will keep you informed on that via this issue.
Thx
Comment #2
Stalski CreditAttribution: Stalski commentedSorry to answer so late.
It certainly is possible. There are a couple of ways to do this.
I would recommend implementing the hook_heartbeat_messages_alter (or even hook_heartbeat_theme_alter) to verify the node's attribute when showing the stream. When using views you could add a field and joining the node for instance, but preferrable use the blocks and pages in heartbeat itself.
Comment #3
Stalski CreditAttribution: Stalski commentedComment #4
Junni CreditAttribution: Junni commentedWe used the hook_heartbeat_messages_alter() but when there are a lot of messages of a particular domain, the heartbeat activity is empty on the other domain(s), since it removes the 'wrong' entries. Is there a solution for this, except increasing the records to fetch :)