So, today I want to create a PDF Template that list all the people face and their name and came up with this formula after a while, feel free to use.
nameAlt is a custom field, I use this field as the nickname or main name. Sometime legal name is not the wanted name so we create this field. There is also special characters as well.
As for photoIDid - this is an image field, I use this field to upload people face.
the "#unless" tag is basically like this, "if nameAlt is blank" then show First Name, if there is a nameAlt, then it show the Name Alternative.
Here is a sample.
Data:
Template Result:
The first guy, Test no Photo.
----
One thing I want to do is like this but I haven't figure out how to do it with the code yet.
[photo] [photo] [photo]
Name [name] [name]
nameAlt is a custom field, I use this field as the nickname or main name. Sometime legal name is not the wanted name so we create this field. There is also special characters as well.
As for photoIDid - this is an image field, I use this field to upload people face.
the "#unless" tag is basically like this, "if nameAlt is blank" then show First Name, if there is a nameAlt, then it show the Name Alternative.
Code:
{{#each contacts}} {{#ifMultipleOf @key 3}} {{/ifMultipleOf}}{{imageTag photoIDId width=100 height=100}} {{#unless nameAlt}} {{firstName}}{{else}} {{nameAlt}} {{/unless}} {{/each}}
Data:
Template Result:
The first guy, Test no Photo.
----
One thing I want to do is like this but I haven't figure out how to do it with the code yet.
[photo] [photo] [photo]
Name [name] [name]
Comment