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

Stalski’s picture

Strange. 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)

trillex’s picture

Ah, 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.

Stalski’s picture

So is this problem gone for you, if so change the status of this issue ;) , if not explain again how I get help you.

Stalski’s picture

Status: Active » Closed (won't fix)

I'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.

trillex’s picture

Hmm, 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.

trillex’s picture

Title: Heartbeat and rules not accepting other tokens? » Heartbeat and linking to comments
Status: Closed (won't fix) » Active
Stalski’s picture

Status: Active » Closed (won't fix)

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

trillex’s picture

I think I meant the default module, not example.