R
R
rizmaster2016-11-15 13:27:09
css
rizmaster, 2016-11-15 13:27:09

How to display gallery images?

Hi
Question about modx.
There is a "main" resource and a "gallery" resource with child resources. In each child, pictures are displayed through migx. On the main page, I have a block with pictures... So, how can I make it so that on the main page in the block where the pictures are, all the pictures are displayed randomly from all the child resources of the "gallery" resource?
Thank you in advance!!!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexRas, 2016-11-15
@AlexRas


parents - should be replaced with gallery id.
tplGallery is the name of a chunk with content for displaying resource images:

tvname - the name of the additional field
thumbTpl - a chunk with a template for the image, for example:
Something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question