In an image MIGX TV used by Newspublisher and stored via MIGXFineUploader, the totalVar [[+total]] placeholder outputs 1 with multiple images stored for the resource.
With [[+idx]] in the getImageList tpl, the count is correct.
From getImageList docs: `[[+total]]`: count of all rows, replace 'total' with your totalVar
There are two total images in my example, hence I’d expect [[+total]] to output 2. Is this the right expectation?
do you have maybe another snippet at the same time, which also outputs a [[+total]] placeholder?
Then you need set another totalVar, for example &totalVar=`migxtotal` and the placeholder [[+migxtotal]]
Are you calling getImageList maybe uncached and the placeholder cached?
The parser handles simple placeholders differently. If no value for this placeholder is defined, the placeholder is left in place. The code does multiple iterations and on the second iteration, the value of the placeholder has been set and can be substituted.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.