From 01f36734203007cc0a8f3255952aeecf96f5704d Mon Sep 17 00:00:00 2001 From: Gina Monti Date: Mon, 5 Jun 2023 13:32:50 -0400 Subject: [PATCH] [docs] lp1841635 Adding macros for preferred name. Signed-off-by: Jane Sandberg --- docs/modules/admin/pages/receipt_template_editor.adoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/modules/admin/pages/receipt_template_editor.adoc b/docs/modules/admin/pages/receipt_template_editor.adoc index 14d04dcdf9..35b70eab65 100644 --- a/docs/modules/admin/pages/receipt_template_editor.adoc +++ b/docs/modules/admin/pages/receipt_template_editor.adoc @@ -142,6 +142,12 @@ ${{patron_money.balance_owed}}` See also: https://docs.angularjs.org/api/ng/directive/ngIf +=== Preferred Name Formatting === + +If a patron has a preferred name, those names can be placed in the receipt. + +Use `{{patron.pref_first_given_name}}`, `{{patron.pref_second_given_name}}`, and/or `{{patron.pref_family_name}}`. + === Substrings === To print just a sub-string of a variable, you can use a *limitTo* function.