I'm trying to print related items in a PDF template using this example in the documentation:
{{tableTag}}
{{#each contacts}}
{{trTag}}
{{tdTag}}{{name}}{{/tdTag}}
{{tdTag}}{{amount}}{{/tdTag}}
</tr>
{{/trTag}}
{{/each}}
{{/tableTag}}
Some questions (appreciate any help in advance ) -> please note cannot do code except in template using cloud version
- the "</tr?" is that a typo?
- how would I do this using regular html? what i try just prints the html not the data
- is there something missing for it to create the cells?
- How do you print the header?
When i follow this 2nd example below on the same page I get the attached screen shot
{{#tableTag width="80%" border="0.5pt" cellpadding="4"}}
{{#each opportunities}}
{{#trTag}}
{{#tdTag width="40%"}}{{name}}{{/tdTag}}
{{#tdTag width="30%"}}{{assignedUserName}}{{/tdTag}}
{{#tdTag width="30%" align="right"}}{{stage}}{{/tdTag}}
{{#tdTag width="30%"}}{{assignedUserName}}{{/tdTag}}
{{#tdTag width="30%" align="right"}}{{stage}}{{/tdTag}}
{{/trTag}}
{{/each}}
{{/tableTag}}
Some questions regarding this example
- Should the table be 100%?
- Does it matter that it is not and the cells add up to 100?
- I tried changing the % but that didn't change the fields printing on top of each other
- Is there a guide like this with examples for boarder, colors, or does html elements translate?
- How would I do this in HTML in the PDF template?
- examples that I tried only prints the html code
Comment