In pricelist advanced pdf template, I tried to sho...
# advancedpdf
b
In pricelist advanced pdf template, I tried to show item image using this but doesnt work.
Copy code
<#list record.lines?chunk(3) as row>
        <tr>
            <#list row as line>
	        
		            <td style='padding:3pt 7pt' colspan="2"><b>Item#: ${line.item}</b></td>
                    <#assign itemimage = line.custitem_atlas_item_image>                    
                    
                    <@filecabinet nstype="image" alt="" src="${itemimage}" style="width:50px;height:50px"/>
I can see item name is output but not item image Any help would be appreciated. When I output ${itemimage} it throws me an error while generating price list
p
Copy code
<img src="${itemimage@url}"  style="width: 50px; height: 50px;" />
You need to keep the assign then, could also just forego that step and use line.custitem_atlas_item_image directly - I know this works for pointing at a source for the HTML render (of which you had none in your sample for the image at least.)
further please use a wrapper like this to avoid printing a broken image link:
Copy code
<#if line.custitem_atlas_item_image?has_content> ... </#if>
b
Thank you