R
R
RushV2020-12-05 19:57:13
MODX
RushV, 2020-12-05 19:57:13

How to exclude last added resource from ModX selection?

I welcome everyone!
There is a news container.
How to exclude the last added news from the selection?
Here it seems to have excluded the &resources=`-16` resource. It works, but I don't think it's done right.
Maybe there is a correct conclusion more original and correct.



Thank you in advance!!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Tarasov, 2020-12-05
@an-tar

https://docs.modx.pro/komponentyi/pdotools/snippet...
There is a wonderful first parameter , I also assume that you will sort in reverse order, I added both parameters, the final snippet call looks like this:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question