[[+content_image]]
D
D
Denis T2016-02-18 13:47:26
MODX
Denis T, 2016-02-18 13:47:26

How to display random images using gallery modx?

Good day!
Can you please tell me how to display 3 random images using gallery modx?
There is a query:
[[!Gallery? &album=`1` &thumbWidth=`215` &thumbHeight=`140` &thumbTpl=`gallery` &imageWidth=`1100` &imageHeight=`800` &limit=`3` &sort=`rand`]]
It outputs images but on page reload they remain the same, only the order changes (because &sort=`rand`).

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
S
Sanes, 2016-02-18
@Sanes

No way. There is a default parameter &dir=`ASC`

T
talas1234, 2016-02-19
@talas1234

there is a separate plugin (I don’t remember what it’s called) for displaying a random house. look at the official repositories. Might fit, haven't used it myself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question