1

Есть вывод getResources который выводит 4 записи:

  [[!getResources?
  &elementClass=`modSnippet`
  &showHidden=`1`
  &tpl=`T_first_event`
  &limit=`4`
  &includeContent=`1`
  &includeTVs=`1`
  &depth=`1`
  &parents=`[[*id]]`
  &hideContainers=`1`
  ]]

Как вивести все записи кроме последней добавленой?

1 ответ 1

1

Легко - отсортируй по дате добавления и укажи сдвиг:

&sortby=`{"publishedon":"DESC"}`
&offset=`1`

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.