Accessing nested objects in the PDF Plugin

  • AlexR
    Participant
      4 years 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
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (310)
        Has successfully completed the Intermediate Certification
      4 years 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.