How can we help?

Listed below are additional filters. See more filters here, however please keep in mind that not all Liquid filters work in Rallybound's system. 

Filters listed on this page:

  • cal
  • date
  • default
  • exists
  • money
  • name
  • timezone

cal

Applies to Campaign object only. Returns a URL that provides the user with a calendar invite for the campaign that they can import in their calendar client. The filter populates the campaign name as the event title, the campaign date/time as the event date and start time with a default one hour duration, the campaign location as the event location, and the campaign description as the event description. 

The filter can populate a URL for Google Calendar or any other calendar (like Apple, Outlook, etc). The desired service should be defined as a filter value, with either 'google' for Google Calendar, or 'ics' for any non-Google calendars, like so:

Input

{{ Campaign | cal: 'google' }}

Input

{{ Campaign | cal: 'ics' }}

To modify the duration, add the desired duration in minutes (be sure to separate filter parameters with a comma). In the following example, the event duration will be two hours:

Input

{{ Campaign | cal: 'google', 120 }}

The ics filename defaults to the campaign name, but may also be modified in the filter parameters, by adding a string within quotes after the duration.

Below is a HTML/Liquid block you can use to add visual links to Google, Apple, and other calendar invites on your campaign website or in emails:

Input

Add this event to your calendar:<br>
<a href="{{ Campaign | cal: 'ics' }}" target="_blank"><img src="https://cdn3.rallybound.org/content/global/img/add-calendar-apple.png" alt="Add to Apple Calendar"></a> <a href="{{ Campaign | cal: 'google' }}" target="_blank"><img src="https://cdn3.rallybound.org/content/global/img/add-calendar-google.png" alt="Add to Google Calendar"></a> <a href="{{ Campaign | cal: 'ics' }}" target="_blank"><img src="https://cdn3.rallybound.org/content/global/img/add-calendar-any.png" alt="Add to any calendar"></a>

Output (visual)

Add this event to your calendar:

  

date

Converts a timestamp into another date format.

Input

{{ Campaign.Event_Date | date: "%B %d, %Y" }}

Output

January 1, 2020

date accepts the same parameters as Ruby's strftime method. You can find a list of the shorthand formats in Ruby's documentation or use a site like strfti.me.

default

Sets a default value for any variable with no assigned value. Can be used with strings, arrays, and hashes.

The default value is returned if the variable resolves to nil, false or an empty string "". A string containing whitespace characters will not resolve to the default value.

Input

Dear {{ Donor.First_Name | default: "donor" }},

If the donor has no first name, the output will be:

Output

Dear donor,

exists

Checks to see if the object or attribute exists. Does not work on all objects. Use this filter in an if tag to add content that should appear if the object or attribute exists:

Input

{% if Team | exists %}
Invite team members for a successful campaign!
{% else %}
Thank you for your support.
{% endif %}

If the user is on a team, the output will be:

Output

Invite team members for a successful campaign!

If the user is not on a team, the output will be:

Output

Thank you for your support.

money

Returns a number in monetary format.

Input

{{ Donation.Amount | money }}

Output

$54

The number of decimal places can be defined by appending a number to the filter. For example:

Input

{{ Donation.Amount | money, 2 }}

Output

$54.00

name

Returns the user's full name (first and last). If there is no name listed, it will return the company name. Only works for fundraisers, not donor-only or org-level users. 

Input

{{ User | name }}

Output

John Doe

timezone

Converts a time as stored in one timezone into the local time of a different timezone. For example, 4:00 PM Pacific converts to 7:00 PM with a "US/Eastern" timezone filter value.

Note that the Neon Fundraiser Admin recognizes times in Pacific time. For things like event date, use this filter if the date in the Admin is entered in US/Pacific time and the output should be in a different timezone (e.g., if the event is at 7:00 pm in New York, enter 4:00 pm in the Admin and on campaign websites and in emails, output the campaign date with a timezone offset). Note that this does not cover all locations on the campaign site and there may be inconsistencies in how the date/time is displayed in some instances.

Input

{{ Campaign.Event_Date | timezone: "America/New_York" | date: "%B %d, %Y, %l:%M %p" }}

Output

January 1, 2020, 7:00 PM

timezone accepts the timezone values as they appear in the 2021a of the tz database. You can find the values in this list.