Hi,
after a couple of days trying to understand the strange behaviour of my chunks, it appears to me that it should be a getResources problem!
These are my chunks:
At first, my global call (within another chunk):
[[!$getTvMinMax? &mm.parentId=`19` &mm.tv=`tvAgeMin` &mm.type=`min` &mm.ph=`tvMinValue` ]]
[[!$getTvMinMax? &mm.parentId=`19` &mm.tv=`tvAgeMax` &mm.type=`max` &mm.ph=`tvMaxValue` ]]
tvMinValue : [[+tvMinValue]] <!-- This will append a array dumped from getResources!!! -->
tvMaxValue : [[+tvMaxValue]] <!-- This works -->
my getTvMinMax chunk:
[[!getResources?
&parents = `[[+mm.parentId]]`
&resources = `-[[+mm.parentId]]`
&tpl = `getTvMinMax-value`
&toPlaceholder = `[[+mm.ph]]`
&limit = `1`
&tvPrefix = ``
&includeTVs = `1`
&processTVs = `1`
&sortby = ``
&sortbyTV = `[[+mm.tv]]`
&sortbyTVType = `integer`
&sortdirTV = `[[+mm.type:is=`max`:then=`DESC`:else=`ASC`]]`
&tvFilters = `[[+mm.tv]]>=0`
&includeTVList = `[[+mm.tv]]`
&processTVList = `[[+mm.tv]]`
]]
And finally, the getTvMinMax-value tpl:
Anytime I use "DESC" for "sortdirTV, it works. But when it's "ASC", it dumps the array of the result into the placeholder, without using the tpl!
I'm loosing my french (... and I'm french!)...... any idea ?
Many thanks for your help.