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.
I've just been playing around with the examples provided in this module, since it does what I need it to do - but I've been trying to make the "add comment" link to the comment instead of just the node. I've been looking through the tokens and changed it in the Rules - but when I create a new comment, it just shows the token name instead of "executing" it. This is with the latest beta version of Rules.
Comments
Comment #1
Stalski CreditAttribution: Stalski commentedStrange. Cant you just override the theme function and change the link yourself?
The link to toggle the comment can be changed.
What I would suggest, is to create a custom button for heartbeat which you control. So that means creating a ctools heartbeat plugin. You would only need to create a renderButtons override I guess. I haven't tried this out yet, but that's what it's built for.
I don't know why tokens could help here, or maybe I misunderstood something. Tokens are for inside the messages (although the flag button is built on tokens as well)
Comment #2
trillex CreditAttribution: trillex commentedAh, I assumed that the "token" seen in the Rules UI ([comment:node:link]) was a token - but I could not see it in any lists. I thought it might have been an easy change, but I shall look into it. Thanks for the fast response.
Comment #3
Stalski CreditAttribution: Stalski commentedSo is this problem gone for you, if so change the status of this issue ;) , if not explain again how I get help you.
Comment #4
Stalski CreditAttribution: Stalski commentedI'll close this as [ENTITY:link] will be provided by the token module by the end of this week. This will be for the better.
Comment #5
trillex CreditAttribution: trillex commentedHmm, I came away from this but now I am right back from where I started and I am still not sure how to get Heartbeat to link directly to a comment rather than a node. This is using the example module.
Comment #6
trillex CreditAttribution: trillex commentedComment #7
Stalski CreditAttribution: Stalski commentedThe example module is not supposed to be enabled!
This is not supported in heartbeat, but you can create custom tokens as you go.
Please note that won't fix means I won't put in the module as it is not behavior that will often be used.
Comment #8
trillex CreditAttribution: trillex commentedI think I meant the default module, not example.