SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
580 stars 353 forks source link

[Alpha 1.16.7.2]-NextGen Checkin-Labels don't allow parent name #6102

Closed kimlongcr closed 4 days ago

kimlongcr commented 4 days ago

Description

On our labels today, we print the parent's name that checked them in for the day. This allows volunteers to call the parent by name when picking their child up.

Actual Behavior

Nextgen labels don't allow you to add the parent name via the new interface. I attached what our labels look like in 16.6 that I was trying to recreate. Screenshot 2024-11-22 at 9 29 29 AM

Expected Behavior

Parent name can be added to labels

Steps to Reproduce

Go to the nextgen labels menu option Select a label Select Label Designer option = parent name is not an option under Attendee Info or Checkin Info

Issue Confirmation

Rock Version

Rock McKinley 16.7 (1.16.7.2)

Client Culture Setting

en-US

JimMichael commented 4 days ago

I could be completely wrong about this, but I think because the "Label Type" in Nextgen only has certain built-in merge fields, for anything else we want to display we have to write our own "merge field" Lava, just like in v1 checkin.

To my knowledge this hasn't been documented yet, but by poking around I was able to get Parents to print via a Text control set to Dynamic Text, with the following in the Lava template:

{% assign parents = Person | Parents %} {% for person in parents %} {{ person.FullName }}, {% endfor %}

kimlongcr commented 4 days ago

@JimMichael If this worked for you, I'm good with it. We'll use Lava. Thanks!

jonedmiston commented 4 days ago

Closing this as it is possible with Lava. We'll look at the practicality of adding it through the UI in the near future.