I am looking to add an additional <div> every 1st and </div> 3rd row using the following code.
[[!getResources?
&parents=`0`
&tpl=`fCarouselRowTpl`
&tpl_n1=`fCarouselRowTpl1`
&tpl_n3=`fCarouselRowTpl3`
&includeTVs=`1`
&processTVs=`1`
&tvPrefix=``
&showHidden=`1`
&tvFilters=`featureIndex==Feature`
]]
The above code only returns the &tpl value rather than using &tpl_nN perimeters.
Am I doing something wrong?
Using the latest version of both MODX and getResources.
The completed working code:
[[!getResources?
&parents=`0`
&tpl=`fCarouselRowTpl`
&tplFirst=`fCarouselRowTpl1st`
&tpl_n3=`fCarouselRowTpl3`
&tpl_n4=`fCarouselRowTpl1`
&tplLast=`fCarouselRowTpl3`
&includeTVs=`1`
&processTVs=`1`
&tvPrefix=``
&showHidden=`1`
&tvFilters=`featureIndex==Feature`
]]
&tpl= Default row
&tplFirst= First row with opening <div>
&tpl_n3= Third row item with closing </div>
&tpl_n4= Open new grouped row <div>
&tplLast = Last row with closing </div>
This may help someone