How do I include CCK fields in my emails? I don't see them in the tokens list. Is there any documentation on this?

Comments

salvis’s picture

Have you enabled subscriptions_cck.module?

capellic’s picture

Yes, the following Subscriptions modules are enabled:

Subscriptions
CCK Fields
Content Subscriptions
Subscriptions Mail
Subscriptions UI
Taxonomy Subscriptions

When I go to Mail Templates (admin/build/mail-edit), I edit my subscriptions_mail_digest Mailkey (admin/build/mail-edit/subscriptions_mail_digest/en). This is the list of tokens I get for "Digest Item"

!unsubscribe_url
The user can unsubscribe by clicking this link.
!sender_name
Name of the sender (if the sender is visible).
!sender_page
The user page of the sender (if the sender is visible).
!sender_has_contact_page
The sender's contact setting: 1 = contact form enabled, 0 = disabled.
!sender_contact_page
The contact page of the sender.
!subs_type
The type of the subscription, like 'thread' or 'category'.
!node_type
The type of the node, like 'forum' or 'story'.
!title
The title of the subscriptions item.
!teaser
An excerpt of the subscriptions item.
!body
The body of the subscriptions item.
!full_node
The full node as it appears on the website (must be specifically enabled here).
!url
The URL of the item.
!is_new
The type of notification: 1 = new item, 0 = otherwise.
!is_updated
The type of notification: 1 = updated (possibly new and already updated) item, 0 = otherwise.
!is_old
The type of notification: 1 = neither new nor updated item, 0 = otherwise.
!is_published
The publication state: 1 = published, 0 = unpublished.
(Unpublished nodes are sent to users with the administer nodes permission only.)
!has_new_comments
The comments state: 1 = comments are available in !comments, 0 = no comments.
!comments
One or more comments if available, otherwise empty.
The rendering of the comments is defined by the template below.

Am I looking in the right spot?

salvis’s picture

Category: support » bug

Ah, yes, they're missing on the digest page.

You can find them on the other pages, though. Maybe the same syntax will work in digest items, too.

I will fix it, thanks for reporting.

salvis’s picture

Status: Active » Fixed

Committed to the -dev version, give it up to 12 hours to be repackaged.

capellic’s picture

Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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