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

Stalski’s picture

Assigned: Unassigned » Stalski
Status: Active » Postponed

Well , 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

Stalski’s picture

Status: Postponed » Fixed

Sorry 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.

Stalski’s picture

Status: Fixed » Closed (fixed)
Junni’s picture

We 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 :)