Im trying to make a very simple mail template, just a link back to the content. For security reasons I dont the comment text or even node title in the email alert.

What token do I need? Ive looked through the list and cant find what I need, even though if I preview the default template output I can see it is making a link to the content. Is there any documentation on this? Thanks

Comments

salvis’s picture

Status: Active » Fixed

Well, look at the default template.

The token you're looking for is right there, right after LINK:

There's no magic — it's all there. Please help yourself.

jdln’s picture

Status: Fixed » Active

Sorry, I forgot to mention its the digest template im working on. So I want a links for all the content that has changed. [node:url] isnt recognised by that template.

jdln’s picture

Sorry, I forgot to mention its the digest template im working on. So I want a links for all the content that has changed. [node:url] isnt recognised by that template.

salvis’s picture

As you can see in the digest template, [subs:items:index:#0:formatted] is the current item (node) as formatted by its content-type template.

You can either change the content-type template, or you can remove [subs:items:index:#0:formatted] and follow the advice right beneath the digest template edit field:

Recommended tokens: [subs:items]
Note: Accessing parts of an item requires casting the item to the correct item type, e.g.
[subs:items:index:#0:as-node:title].

If you want the url rather than the title, then you put 'url' instead of 'title', obviously.

Are you sure you are up to running a web server? I'm sure you have many great talents, but you require an excessive amount of hand-holding for this technical stuff...

jdln’s picture

This was the last thing I had to get working for my site. Thanks for your help.

salvis’s picture

Status: Active » Fixed

Ok, good luck!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.