oko1o 0 Опубликовано: 18 октября 2024 Рассказать Опубликовано: 18 октября 2024 Приветствую. Каждая новость закреплена за 1 фиксированной категорией и еще за одной из двух дополнительных. Есть какие-то циклы в dle или альтернативные возможности дляя чередования новостей? Я пока сделал так, но выглядит топорно и думаю можно и нужно как-то оптимизировать. {custom name="alternated-posts" category="{category-id}" categoryexclude="15" subcat="no" order="rating" sort="desc" from="0" limit="2"} {custom name="alternated-posts" category="{category-id}" categoryexclude="16" subcat="no" order="rating" sort="desc" from="0" limit="1"} {custom name="alternated-posts" category="{category-id}" categoryexclude="15" subcat="no" order="rating" sort="desc" from="2" limit="2"} {custom name="alternated-posts" category="{category-id}" categoryexclude="16" subcat="no" order="rating" sort="desc" from="1" limit="1"} {custom name="alternated-posts" category="{category-id}" categoryexclude="15" subcat="no" order="rating" sort="desc" from="4" limit="2"} {custom name="alternated-posts" category="{category-id}" categoryexclude="16" subcat="no" order="rating" sort="desc" from="2" limit="1"} {custom name="alternated-posts" category="{category-id}" categoryexclude="15" subcat="no" order="rating" sort="desc" from="6" limit="2"} {custom name="alternated-posts" category="{category-id}" categoryexclude="16" subcat="no" order="rating" sort="desc" from="3" limit="1"} {custom name="alternated-posts" category="{category-id}" categoryexclude="15" subcat="no" order="rating" sort="desc" from="8" limit="2"} {custom name="alternated-posts" category="{category-id}" categoryexclude="16" subcat="no" order="rating" sort="desc" from="4" limit="1"} {custom name="alternated-posts" category="{category-id}" categoryexclude="15" subcat="no" order="rating" sort="desc" from="10" limit="2"} {custom name="alternated-posts" category="{category-id}" categoryexclude="16" subcat="no" order="rating" sort="desc" from="5" limit="1"} Ссылка на сообщение Поделиться на других сайтах
Рекомендованные сообщения
Создайте аккаунт или войдите в него для комментирования
Вы должны быть пользователем, чтобы оставить комментарий
Создать аккаунт
Зарегистрируйтесь для получения аккаунта. Это просто!
Зарегистрировать аккаунтВойти
Уже зарегистрированы? Войдите здесь.
Войти сейчас