[[+content_image]]
A
A
Alexander Timofeev2016-02-19 17:56:09
MODX
Alexander Timofeev, 2016-02-19 17:56:09

How in modx after every third publication through pdoResources to insert a certain html-code (separator) on the page?

How in modx after every third publication through pdoResources to insert a certain html-code (separator) on the page?
This is how it looks like, for example:

[[pdoResources?
    &parents=`5`
    &depth=`1`
    &tpl=`statii`
    &includeTVs=`image`
]]

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
C
Chich177, 2016-02-22
@Chich177

In the statii chunk, define an entry that is a multiple of 3 using the idx placeholder value:

Запись после каждого третьего элемента потока

S
Sanes, 2016-02-19
@Sanes

Element designs are possible in the standard delivery
. First
Last
Even
Odd

A
Alex, 2016-02-19
@astrodeep

The old-fashioned bydlokodom through js)

S
Sergey Virchenko, 2016-02-26
@SerjVirchenko

[[!divThree? &input=`[[+idx]]` ÷=`3`]]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question