How do put the largest amount someone has donated in an email blast?

There doesn't appear to be a liquid variable available for "largest amount donated," so how can I include this information in a blast?

Official response from

You have to assign the donations to an array, sort by the amount, and then choose the last one to display:

{% assign my_array = recipient.donations | sort: 'amount_in_cents' %}
{% for donation in my_array %}
{% if forloop.last == true %}
{{donation.amount_format }}
{% endif %}
{% endfor %}

 

Complete and current information on how to use NationBuilder is available in the documentation section.

Share this post

Showing 1 reaction

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.