0 Can't make a "Background check" profile badge 2 Michael Garrison posted 9 Years Ago I like the "Background Check" feature that came with Rock v2.0, but we would like to surface the basic information on a profile badge. I've created a badge with the following Liquid codes: <div class="badge" style="position:relative;"> {% if Person.BackgroundCheckResult == "Pass" -%} <i class="badge-icon fa fa-check" style="color:#090;" title="{{ Person.NickName }} passed a background check on {{ Person.BackgroundCheckDate }}"></i> {% endif -%} {% if Person.BackgroundCheckResult == "Fail" -%} <i class="badge-icon fa fa-exclamation-triangle" style="color:#F00;" title="{{ Person.NickName }} FAILED a background check on {{ Person.BackgroundCheckDate }}"></i> {% endif -%} </div> But the badge remains blank. I've put the <i> element outside of the conditionals, and it does show up. However it appears that Person.BackgroundCheckDate returns null, as does Person.BackgroundCheckResult. These are just person attributes, like Baptism Date and some other custom attributes I've created a badge for- what's different here?
Michael Garrison 9 years ago That makes sense. Will there be a version where the new AND the old Lava Attribute tags will both work so that we have a version during which we can find and transition our tags, rather than having everything just stop working in v3.0? Also, I wasn't aware that such a tag change was coming- is there any documentation on the new syntax anywhere (or other such breaking changes)? I can switch our attribute tags easily enough with azturner's example, but I'm not sure what a conditional would look like.Thanks
Michael Garrison 9 years ago I tried some of the new syntax on one of my existing badges, and it didn't seem to work. That's the only reason I asked. I'll take a look at that page (haven't seen that one before) and try again.Thanks!!
Michael Garrison 9 years ago OK, debug mode showed me the issue- I was using {{ CurrentPerson | Attribute:'key' }} per the example given on the bug report, but it needed to be {{ Person | Attribute:'key' }} instead.THANKS for building in both syntaxes this soon- I'll get to work on making sure I'm updated for the new.