New topic Closed topic
avatar image
1
How to loop through a collection in a PDF generate?
By Created , last editted

I have created a pdf template in which I loop through municipalities with liquid:

{% for municipality in municipalities %}1{% endfor %}

However the pdf file does not show any results. I've tried adding the variable collection municipalities on the pdf generate actionblock itself and i've tried putting it on the main action. When i try {{record.id}} it does show the id. 

How can I use the collection in my pdf generate action?



I have created a pdf template in which I loop through municipalities with liquid:

{% for municipality in municipalities %}1{% endfor %}

However the pdf file does not show any results. I've tried adding the variable collection municipalities on the pdf generate actionblock itself and i've tried putting it on the main action. When i try {{record.id}} it does show the id. 

How can I use the collection in my pdf generate action?


Answers
Sort by:

This topic is closed.