Quote from: BobRay at Nov 14, 2013, 11:15 PMAnother CPU killer can be complex conditional output modifiers, especially if they are in a Tpl chunk and have to be evaluated on each iteration, though that shouldn't affect the Manager.
Thank you for your help.
Here is the 'what's on' tpl with conditional statements. It displays what's on items in boxes left to right and every 4th box creates a new line (closes the div row). Is there a work around to make the below more efficient? relatedboxes chunks are very similar so I only included one below: Thanks, David
<div class="childrow">[[getResources:default=`<!-- no results --></div>`? &parents=`[[+id]]` &limit=`20` &depth=`1` &tpl=`relatedboxes` &tpl_n4=`relatedboxes4` &tplLast=`relatedboxeslast` &includeTVs=`1` &includeTVList=`thumbImage,tv.mainImage,propertyImage` &sortbyTV=`eventDate` &sortdirTV=`ASC` ]]
then related tpl:
<div class="childpage [[+total:is=`1`:then=`colfull`]]
[[+total:is=`2`:then=`colhalf`]]
[[+total:is=`3`:then=`colthird`]]
[[+total:isgte=`4`:then=`colquarter`]]">
<div class="childbox">
[[+tv.thumbImage:notequalto=``:then=`<a href="[[~[[+id]]]]"><img src="[[+tv.thumbImage:phpthumbof=`w=420&h=310&zc=1`]]" alt="[[+pagetitle]]" class="scale-with-grid" /></a>`:else=`
[[+tv.tv.mainImage:ifnotempty=`<a href="[[~[[+id]]]]"><img src="[[+tv.tv.mainImage:phpthumbof=`w=420&h=310&zc=1`]]" alt="[[+pagetitle]]" class="scale-with-grid" /></a>`]]
[[+tv.propertyImage:ifnotempty=`<a href="[[~[[+id]]]]"><img src="[[+tv.propertyImage:phpthumbof=`w=420&h=310&zc=1`]]" alt="[[+pagetitle]]" class="scale-with-grid" /></a>`]]
`]]
[[*includelongtitle:isequalto=`yes`:then=`<h4>[[+longtitle]]</h4>`]]
<h3><a href="[[~[[+id]]]]">[[+menutitle:default=`[[+pagetitle]]`]]</a></h3>
<p class="intro-child" style="border-bottom:0">[[+introtext]] </p>
</div>
<div class="clear"></div>
</div>