Hello everyone!
I am using Dompdf, and I'm trying to print a list of image thumbnails along with the image name using the {{#each}} statements.
<tr>
<td colspan="8" align="center"><span style="font-size: 12px;">
{{#if photographs}}
{{#each photographsIds}}
<table style="table-layout: fixed; width: 100%; align: center;"><tbody>
<tr><td align="center">{{@index}}: {{lookup photographs.name index}}<br></td>
<td align="center">{{imageTag height=150 ./this}}<br></td></tr>
</tbody></table>
{{/each}}
{{else}}<i>None.</i>{{/if}}
</span></td>
</tr>
The images are displaying perfectly, but I can't seem to find the right code to display the file name. Any ideas?
I am using Dompdf, and I'm trying to print a list of image thumbnails along with the image name using the {{#each}} statements.
<tr>
<td colspan="8" align="center"><span style="font-size: 12px;">
{{#if photographs}}
{{#each photographsIds}}
<table style="table-layout: fixed; width: 100%; align: center;"><tbody>
<tr><td align="center">{{@index}}: {{lookup photographs.name index}}<br></td>
<td align="center">{{imageTag height=150 ./this}}<br></td></tr>
</tbody></table>
{{/each}}
{{else}}<i>None.</i>{{/if}}
</span></td>
</tr>
The images are displaying perfectly, but I can't seem to find the right code to display the file name. Any ideas?
Comment