0 New Lava badge for Missionaries 5 Amber McCoy posted 7 Years Ago We have quite a few missionaries we support and I added a "Missionary" bar tag (where the Member, Visitor bar tag is under their name). While that is neat and helpful, I also wanted to make a new lava badge with a globe and if they are a missionary then it show up colored and if not, it would be grayed out, similar to the baptism water drop badge. I also added a Missionary spot to the membership area (under the baptism area). I am having trouble getting the badge to work properly, it either shows everyone as a missionary or no one as a missionary. Here is what I have in the lava part: {% assign ConnectionStatusValue = Person | Attribute:'Missionary' %} {% if ConnectionStatusValue == 'Missionary' -%} <div class="badge badge-missionary" data-toggle="tooltip" data-original-title="{{ Person.NickName }} is a missionary."> <i class="badge-icon fa fa-globe"></i> </div> {% else -%} <div class="badge badge-missionary" data-toggle="tooltip" data-original-title="{{ Person.NickName }} is not a missionary."> <i class="badge-icon badge-disabled fa fa-globe"></i> </div> {% endif -%}I copied the baptism lava coding and modified it to missionary and changed the icon. I've even tried writing the "if-then" from scratch and that doesn't work either. Can anyone help? Thanks!
Michael Garrison 7 years ago The Context. stuff is only required if this in an HTML or similar block...not in a badge. If this is indeed in a true person badge, and you created a Connection Status of "Missionary", then use Person.ConnectionStatusValue.Value instead
Michael Garrison 7 years ago I think you'll want to create a different (text-based) badge for the bio bar, but first let's get it working =)So since you're dealing with a real badge, use{% assign ConnectionStatusValue = Person | Attribute:'Missionary' %} if it's a person attribute you addedor{% assign ConnectionStatusValue = Person.ConnectionStatusValue.Value %} if you created an actual connection status. In this case you could actually use this string in the IF command, rather than storing and using a variable. But if it makes sense to you this way, keep doing what you're doing =)