0 votes
in Rock by TinaStephens (8.6k points)
edited

I want to show the baptism badge and a person's birth day and birth month on the group list that shows on the Group MyAccount page. How do I do this?

1 Answer

0 votes
by TinaStephens (8.6k points)
edited
 
Best answer

You can show this information by adding lava to the Group Detail style sheet that the group list blocks references. Add something like this: (lava provided by Brandon Meeks)

<div class="col-sm-12 group-member-badges">

<div class="rockbadge rockbadge-label">

<span class="label label-info"><i class="fa fa-birthday-cake"></i> {{ member.Person.BirthMonth }}/{{ member.Person.BirthDay }}</span>

</div>

{% assign baptismDate = member.Person | Attribute:'BaptismDate' %}

{% if baptismDate != '' -%}

<div class="rockbadge rockbadge-icon rockbadge-icon-nobg" style="color: #23a5c5; font-size: 24px;" data-toggle="tooltip" data-original-title="{{ Person.NickName }} was baptized on {{ baptismDate }}.">

<i class="badge-icon fa fa-tint"></i>

</div>

{% else -%}

<div class="rockbadge rockbadge-icon rockbadge-icon-nobg rockbadge-disabled" style="color: #23a5c5e; font-size: 24px;" data-toggle="tooltip" data-original-title="No baptism date entered for {{ Person.NickName }}.">

<i class="badge-icon fa fa-tint"></i>

</div>

{% endif -%}

</div>

For results like this:

enter image description here

Welcome! Here you can ask questions and receive answers (hopefully) from other members of our team.
...