M
M
Maxim Chernykh2022-01-27 17:18:00
MODX
Maxim Chernykh, 2022-01-27 17:18:00

How to split foreach fenom into two elements?

How can I split an array to display two elements per slide (class="slide") ?

61f2a967cf206884171467.png

I tried something like this, but it doesn’t work correctly, and I don’t like that the opening tag in the first condition index == 0, and the closing tag with index == 1

Tell me the right solution, I’ve been suffering for an hour, I can’t make friends with fenom

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Vasiliev, 2022-01-27
@amvasiljev

modulo - even - odd try
https://github.com/fenom-template/fenom/blob/maste...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question