Skip to main content

Images in a 2-Column Layout

To display images in two columns, use Block Repetition together with indexed access to the file array.


Block Repetition

Use the following data expression to iterate over the images in pairs:

FOR(1, SIZE(item.file_mknjndsx) / 2 + 1)

Dynamic Images

Use indexed access to retrieve two images per row:

PROPERTY(GET(parent.item.file_mknjndsx, $index * 2 - 1), "public_url")
PROPERTY(GET(parent.item.file_mknjndsx, $index * 2), "public_url")

This approach ensures that each row contains up to two images.

Was this article helpful?

Yes
No