<div class="logos">
<h4>[[+ItemName]]</h4>
<div class="item">
<a href="[[+ItemLink]]"><img class="logo [[+ItemLogoType:notempty=`[[+ItemLogoType]]`]] [[+ItemLogoColor:notempty=`[[+ItemLogoColor]]`]]" src="[[+ItemThumb]]" /></a>
<div class="description">
[[+ItemDescription:notempty=`<p>[[+ItemDescription]]</p>`]]
<p>
[[+ItemLogoColor:isnot=`white`:then=`<a href="[[!DnldLogo?&link=`[[+ItemLink]]`&type=`JPG`]]" target="_blank">JPG</a> | `]]
<a href="[[!DnldLogo?&link=`[[+ItemLink]]`&type=`PNG`]]" target="_blank">PNG</a> |
<a href="[[!DnldLogo?&link=`[[+ItemLink]]`&type=`EPS`]]" target="_blank">EPS</a>
</p>
</div>
</div>
</div>
<?php $path_parts = pathinfo($link); $extn = strtolower($type); return $path_parts['dirname'] . "/" . $path_parts['filename'] . "." . $extn;
[[+ItemCategory:contains=`Logo`:then=`
[[+ItemLogoType:contains=`Vertical`:or:contains=`Horizontal`:then=`
<div class="logos">
<h4>[[+ItemName]]</h4>
<div class="item">
<a href="[[+ItemLink]]"><img class="logo [[+ItemLogoType:notempty=`[[+ItemLogoType]]`]] [[+ItemLogoColor:notempty=`[[+ItemLogoColor]]`]]" src="[[+ItemThumb]]" /></a>
<div class="description">
[[+ItemDescription:notempty=`<p>[[+ItemDescription]]</p>`]]
<p>
[[+ItemLogoColor:isnot=`white`:then=`<a href="[[!DnldLogo?&link=`[[-+ItemLink]]`&type=`JPG`]]" target="_blank">JPG</a> | `]]
<a href="[[!DnldLogo?&link=`[[+ItemLink]]`&type=`PNG`]]" target="_blank">PNG</a> |
<a href="[[!DnldLogo?&link=`[[+ItemLink]]`&type=`EPS`]]" target="_blank">EPS</a>
</p>
</div>
</div>
</div>
`]]
[[+ItemFileType:contains=`ZIP`:then=`
<div class="zips">
<h4>[[+ItemName]]</h4>
<div class="item">
<a href="[[+ItemLink]]"><img class="icon zip" src="assets/images/icons/icon-zip.png" /></a>
<div class="description">
[[+ItemDescription:notempty=`<p>[[+ItemDescription]]</p>`]]
<p><a href="[[+ItemLink]]" target="_blank">Download</a></p>
</div>
</div>
</div>
`]]
[[+ItemFileType:contains=`PDF`:then=`
<div class="docs">
<h4>[[+ItemName]]</h4>
<div class="item">
<a href="[[+ItemLink]]" target="_blank"><img class="docThumb" src="[[+ItemThumb]]" /></a>
<div class="description">
[[+ItemDescription:notempty=`<p>[[+ItemDescription]]</p>`]]
<p><a href="[[+ItemLink]]" target="_blank">Download</a></p>
</div>
</div>
</div>
`]]
`]]<?php $path_parts = pathinfo($link); $extn = strtolower($type); return $path_parts['dirname'] . "/" . $path_parts['filename'] . "." . $extn;
[
{"caption":"Groups/Positions List", "fields":
[
{"field":"ItemName","caption":"Item Name","inputTVtype":"text"},
{"field":"ItemDescription","caption":"Description","inputTVtype":"textarea"},
{"field":"ItemThumb","caption":"Thumbnail","inputTVtype":"image"},
{"field":"ItemLink","caption":"Download URL","inputTVtype":"file"},
{"field":"ItemCategory","caption":"Category","inputTVtype":"listbox","inputOptionValues":"1-pager||Logo||Firm-Brochure"},
{"field":"ItemLogoType","caption":"Logo Type","inputTVtype":"listbox","inputOptionValues":"||Vertical||Horizontal"},
{"field":"ItemLogoColor","caption":"White?","inputTVtype":"checkbox","inputOptionValues":"Yes==white"},
{"field":"ItemFileType","caption":"File Type","inputTVtype":"listbox","inputOptionValues":"||PDF||ZIP||JPG||EPS||PNG"}
]
}
][
{"header":"Name","width":"20","sortable":"true","dataIndex":"ItemName"},
{"header":"Descrption","width":"30","sortable":"false","dataIndex":"ItemDescription"},
{"header":"Thumbnail","width":"10","sortable":"false","dataIndex":"ItemThumb"},
{"header":"URL","width":"10","sortable":"false","dataIndex":"ItemLink"},
{"header":"Category","width":"10","sortable":"true","dataIndex":"ItemCategory"},
{"header":"Logo Type","width":"5","sortable":"false","dataIndex":"ItemLogoType"},
{"header":"White?","width":"5","sortable":"false","dataIndex":"ItemLogoColor"},
{"header":"File Type","width":"5","sortable":"false","dataIndex":"ItemFileType"}
][[DnldLogo?&link=`[[+ItemLink]]`&type=`PNG`]]
did you try to call this cached?
[[DnldLogo?&link=`[[+ItemLink]]`&type=`PNG`]]
also, do you call getImageList cached or uncached?
<div class="wrap">
[[*content]]
[[*MediaContactList:notempty=`
<h3>Media Contacts</h3>
<div class="contactList">
[[getImageList?
&tvname=`MediaContactList`
&tpl=`MediaContactItemTpl`
]]
</div>
`]]
[[*MediaDownloadList:notempty=`
<h3>Resources</h3>
<div class="tab-container">
<div class="tabs">
<button class="tab" onclick="openTab(event, 'tab-1')" id="active">Firm Fact Sheet</button>
<button class="tab" onclick="openTab(event, 'tab-2')">Logos</button>
<button class="tab" onclick="openTab(event, 'tab-3')">Firm Brochure</button>
</div>
<div id="tab-1" class="tabcontent">
[[getImageList?
&tvname=`MediaDownloadList`
&tpl=`DnldItem-1page`
]]
</div>
<div id="tab-2" class="tabcontent">
[[getImageList?
&tvname=`MediaDownloadList`
&tpl=`DnldItem-Logo`
]]
</div>
<div id="tab-3" class="tabcontent">
[[getImageList?
&tvname=`MediaDownloadList`
&tpl=`DnldItem-Booklet`
]]
</div>
</div>
`]]
</div>
[[!DnldLogo?&link=`[[+ItemLink]]`&type=`PNG`]]
[[DnldLogo?&link=`[[+ItemLink]]`&type=`PNG`]]
Not sure, if this could be your issue. Try the cached snippet-call:
[[DnldLogo?&link=`[[+ItemLink]]`&type=`PNG`]]
<p>
[[+ItemLink:toPlaceholder=`ItemLinkNew`]]
[[+ItemLogoColor:isnot=`white`:then=`<a href="[[!DnldLogo?&link=`[[+ItemLinkNew`&type=`JPG`]]" target="_blank">JPG</a> | `]]
<a href="[[!DnldLogo?&link=`[[+ItemLinkNew`&type=`PNG`]]" target="_blank">PNG</a> |
<a href="[[!DnldLogo?&link=`[[+ItemLinkNew`&type=`EPS`]]" target="_blank">EPS</a>
</p>