The requested news post does not exist!
There are a few possible reasons for this;- The post may have been deleted due to irrelevancy.
- The post never existed.
{% extends 'global/master.twig' %} {% set newsPosts = viewPost and postExists ? [news.posts[postExists]] : news.posts|batch(postsPerPage)[get.page|default(1) - 1] %} {% if viewPost and postExists %} {% set commentsCategory = 'news-' ~ newsPosts[0].news_category ~ '-' ~ newsPosts[0].news_id %} {% set comments = newsPosts[0].news_comments.comments %} {% else %} {% set paginationPages = news.posts|batch(postsPerPage) %} {% set paginationUrl %}{{ urls.format('SITE_NEWS') }}{% endset %} {% endif %} {% set title %} {% if not (viewPost ? postExists : newsPosts|length) %}Post does not exist!{% elseif viewPost and postExists %}{{ newsPosts[0].news_title }}{% else %}News{% endif %} {% endset %} {% block title %}{{ title }}{% endblock %} {% block css %} {% endblock %} {% block content %}