- Issue created by @bkerwin
- π©πͺGermany jurgenhaas Gottmadingen
The token
[current-page:url]
is the current page, but you want the URL of your entity. So, you should look into the token browser to find out how the token for that entity looks like. Maybe something like[node:url]
.And HTML emails is a challenge, it needs some experimentation to get this to work. We've not enabled that at our client's sites yet.
- πΊπΈUnited States bkerwin
I tried using [node:url] but it doesn't render the link. Is there something we need to do to enable it to be rendered? [current-page:url] does render the link to cron so I'm not sure why [node:url] doesn't work.
- π©πͺGermany jurgenhaas Gottmadingen
Well, I was only giving an abstract example. The real token syntax depends on what data is available to the token service at that point. And that determines the token name then that needs to be used. But again, we've never done that in our projects, so I'm just trying to give hints on where to look at.
- πΊπΈUnited States bkerwin
Ok, so it sounds like there currently there isn't a way to include a link to the entity that generates the notification. [node:url] does appear to be what we'd want, how would we go about adding it to the token service?
- π©πͺGermany jurgenhaas Gottmadingen
it sounds like there currently there isn't a way to include a link to the entity
That's not what I'm saying. There are tokens around at the point of rendering, I just don't know which ones, and I don't know about your context. Notifications can be about very different entity types, etc. I was just trying to explain that the "current-page" can certainly not be the correct token. Everything else needs some research and playing around with the tool, but I currently don't have the bandwidth to do that.
- πΊπΈUnited States bkerwin
I understand and appreciate you taking the time to respond here. Our scenario is pretty simple, when a node is added we generate email to the subscribed users and in the email we need a link to that node. We're using DANSE to generate the events and Push Framework to handle the notifications. [current-page:url] renders a link to the cron admin page (https:///admin/config/system/cron).
is what appears in the token browser in the Push Framework admin. It seems like push-object is the only thing that refers to an object with a url but it's not the node.
If there's any more guidance you could provide that would be great, I understand if not and thank you.