Hi,
I need some help with the summarize function. I cannot somehow find out how to do it:
What I've done so far:
added a new heartbeat message for adding forum topics...:
Unique but descriptive message id: "user_add_forum_topic"
Description of the message: "User adds a Forum topic, save user activity"
Message display access: "Everyone can see this message"
Single message: "!username has added forum topic !node_title"
Type of message: "summary"
Message to group instances: "!username has added forum topics %node_title%"
Group by: "Group by users to summarize nodes"
Variable to summarize: "node_title"
Maximum number of messages to group: "5"
Fill in the target separator: ", "
Fill in the target end separator.: " and "
In Rules then I've created a rule for adding forum topics:
Label: "User add new forum topic"
Event: "After saving new content"
Conditions: "Published" AND "type is Forum topic"
ACTION:
Label: "Logs user activity for single users"
User: "[user:user-id]"
User target: "0"
Node context: EMPTY
Node target: "[node:nid]"
Choose a message: "User adds a Forum topic, save user activity"
Assign a token to each of these variables used in the selected message:
"@username=[user:user-name-url]
@node_title=[node:title-link]
@club=[node:ogname-title-link]"
This is pretty much the same as if you add a new node, only changed to forum topic.
When adding two or more forum topics, they are still handled as single messages on separate rows. I'm using the "heartbeat_activity_personal" view to show the messages in a panel on the user profile page and they are showing but one by one. What am I missing, (apart from Heartbeat basis knowledge :( )
Thanks for any help!
Comments
Comment #1
Stalski commentedI will do you testcase and see what is broken.
Comment #2
drupov commentedHi,
thanks for your response. Maybe it would be important, that I used a 4-x-dev-version from september and I hadn't updated this particular site for a long time (handn't worked on it). Now I tried to update to 4.3 but an error came up while updating, because what remember was, that rules integration is now a separate module within heartbeat. So my update was to uninstall the dev version and install the 4.3, caches cleaned afterwards... I don't think that should cause it, but who knows?
Is that also correct: "Variable to summarize: "node_title" and not "!node_title"."?
Anyway thanks for your time once more!
Comment #3
Stalski commentedHey,
You said:
I'm using the "heartbeat_activity_personal" view. Is this a display created with the views module?
If so, grouping is not possible within views displays for the moment. Heartbeat provided blocks and pages do have lots of functionality i cannot give when building displays with Views module.
As heartbeat is a query builder and provides displays with custom settings, views does not provide real advantages anymore.
Comment #4
Stalski commentedin the sentence you use %node_title%. That's correct for messages that will be merged.
Not correct: "%!node_title% or !node_title for merged messages.
Comment #5
drupov commentedHi,
yes, I was using a view to display activities. Thank you for your help on it!