Nested {{#each }} in PDF templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • affinity608
    Junior Member
    • Jul 2019
    • 11

    Nested {{#each }} in PDF templates

    Hello!

    I'm struggling to find a way to get nested link multiple fields to show up in a PDF template.

    Use case example is I have three entities (A, B, C). The PDF Template is based on entity A, and there are entity Bs that are linked to entity A. Entity B then has entity Cs linked to B. I'm trying to print all of the linked C entities like the following:

    {{#each B}}
    {{#each C}}
    {{name}}
    {{/each}}
    {{/each}}

    However, it is not pulling in any data. I also looked through Handlebars documentation and wasn't able to get any other syntaxes to work. Any suggestions here?
  • Darkcromb
    Member
    • Aug 2019
    • 40

    #2
    Have you find a way to do that ? I have the same problem.

    Comment

    Working...