Skip to main content

How can I show a list of recruits on a person's profile page?

When I use {{ profile.recruits }} all I see is a string of ########'s. I see the same thing if I use {{ profile.recruiting_activities }}. If I use {{ profile.recruits_count }} I do see the correct # of recruits. I have tried {{ profile.recruits.name_or_email }} and {{ profile.recruits.first_name }} but these do not display anything. Thank you!

Official response from

Because the 'recruits' variable is an array of objects (specifically an array of signups), you will need to do this using a forloop (see 'for' under the list of liquid logic tags). You would loop through each signup in this array of recruits and display whatever information you want for each one. For example:

Recruits:
{% for recruit in profile.recruits %}
 {{ recruit.published_name_linked }}

{% endfor %}

Share this post

Showing 2 reactions

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