Announcement

Collapse
No announcement yet.

Nested {{#each }} in PDF templates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

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

    Comment

    Working...
    X