How can we help?

The Notification object contains information related to a tribute notification submitted by a donor along with their donation.

Availability: The Notification object is available on the Donation Confirmation and Donation Tribute Notification emails, and only on campaigns or donation pages which have the tribute feature enabled (see here for more).

Attributes: The Notification object has the following attributes: 

  • Notification.Recipient (User object)

  • Notification.Message

  • Notification.Media

  • Notification.Is_Email_Notification

  • Notification.Is_Mail_Notification

  • Notification.Address (Address object)

Notification

While the Notification object itself isn't very useful without attributes, you can use the field_by_label filter to return the value of a custom field listed for a given donation notification:

Input

{{ Notification | field_by_label: "Tribute Type" }}

Output

In Memory

Notification.Recipient

Returns the recipient of a donation notification. Notification.Recipient is a User object. Use User attributes (e.g., First_Name, Email) and/or filters (e.g., name, field_by_label) to display the desired information.

Notification.Message

Returns the message submitted by the donor to be sent to the notification recipient.

Notification.Media

Returns a direct link to the ecard image selected by the donor to be sent to the notification recipient. Use an if tag to place the image in the email itself:

Input

{% if Notification.Media != null and Notification.Media.Image_Url != null %}
    <img src="{{Notification.Media.Image_Url}}" />
{% endif %}

If the donor selected an ecard to be sent to the notification recipient, it will be included inside the email itself.

Notification.Is_Email_Notification

Returns true if the donor chose to notify the notification recipient via email. Returns false if the donor chose to notify the notification recipient via mail. Use an if tag to place information appropriately (see below).

Notification.Is_Mail_Notification

Returns true if the donor chose to notify the notification recipient via mail. Returns false if the donor chose to notify the notification recipient via email. Use an if tag to place information appropriately.

Input

{% if Donation.Notification.Is_Email_Notification %}
    A notification about your donation has been sent to {{ Donation.Notification.Recipient.Email }}!
{% elsif Donation.Notification.Is_Mail_Notification %}
    A notification about your donation will be sent on your behalf to {{ Donation.Notification.Recipient | name }}!
{% endif %}

If the donor chose to notify the notification recipient via email, the output will be:

Output

A notification about your donation has been sent to jane@doe.com!

If the donor chose to notify the notification recipient via mail, the output will be:

Output

A notification about your donation will be sent on your behalf to Jane Doe!

Notification.Address

Returns the address of the notification recipient. Notification.Address is an Address object. Use Address attributes to display the desired information.