`Why does getImageList correctly display the data in the placeholder only 1 time?
M
M
mletov2018-08-07 13:38:19
MODX
mletov, 2018-08-07 13:38:19

Why does getImageList correctly display the data in the placeholder only 1 time?

Please prompt:

[[getImageList?
                &tvname        = `mx_images`
                &tpl           = `@CODE:<div style="position: relative;"><img src="./assets/images/[[+property.docid]]/[[+image]]" alt="[[+property.pagetitle]]" data-hash="dh[[+idx]]"><div class="img-descr">[[+title]]</div></div>`
                &pagetitle     = `Вопрос`
                &toPlaceholder = `plbig`
                &totalVar      = `total1`
                &docid         = `2`
                &processTVs    = `0`
              ]]
 
                      <div>[[!+plbig]]</div>

The content of getImageList is read into the placeholder.
But the trouble is, when the page is loaded for the first time, it is displayed normally, after pressing F5 the placeholder is empty.

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
I
Igor, 2018-08-16
@ig0r74

If the placeholder is not cached, then the snippet should also be called not cached:
[[!getImageList? ....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question