Accessing nested objects in the PDF Plugin

  • AlexR
    Participant
      4 years, 6 months ago #27215

      Hello,

      we have a nested object. For example {person : { name: “Hans”, age: 23}}. Is there any way to acess the property “name” and  “age” in the pdf plugin with the placeholder {{name}} and {{age}} or do we have to transform the nested object to a single level?

      Regards,

      Alexander Ruck

      Vitali Kurdasov
      Moderator
        4 years, 6 months ago #27216
        Up
        1
        Down
        ::

        Hi Alex,

        you can access those values like this:

        {{#person}}

        {{name}}

        {{age}}

        {{/person}}

      Viewing 2 posts - 1 through 2 (of 2 total)

      You must be logged in to reply to this topic.