How to get text properties out of an existing template?


How can I loop over the details in the text properties without taking the whole payload as a block so for example only the details of the “jr” of each detail?

Hi Jelle

I think that this small piece of code should do the trick

{% for i in (1…2) %}

{% capture detail %}detail_{{ i }}{% endcapture %}

{{ custom.details.[detail].jr }}

{% endfor %}

or

{% for item in custom.details %}

{{ item.jr }}

{% endfor %}

Kind regards
Thomas

Thank you Thomas for your response. It works if I use detail.item :slight_smile: