Skip to content

Commit

Permalink
[docs] lp1841635 Adding macros for preferred name.
Browse files Browse the repository at this point in the history
Signed-off-by: Jane Sandberg <[email protected]>
  • Loading branch information
gmontimantis authored and sandbergja committed Sep 12, 2023
1 parent 52e0db9 commit 01f3673
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/modules/admin/pages/receipt_template_editor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ ${{patron_money.balance_owed}}</span>`

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.
Expand Down

0 comments on commit 01f3673

Please sign in to comment.