Skip to main content

Liquid request. Variables

Hi I'm trying to see what information I can pull from the membership database and display on a site page. But I'm struggling with membership variables. {{ request.current_signup. membership.expires_on }} Doesn't work. Can you display membership expiry date via Liquid to a page? If so what format does the request need to be formatted as.

Official response from

Because a signup can have more than one membership, memberships are stored in an array. You therefore need to use liquid like this:

{% for membership in request.current_signup.memberships %}
{{ membership.expires_on }}
{% endfor %}

Share this post

Showing 1 reaction

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