{% extends '@adminx/main.twig' %} {% block title %}Диагностика · Публичный сайт{% endblock %} {% block content %} {% macro request_group(group) %}
{{ group.operator }} {{ group.title }} {{ group.state == 'passed' ? 'выполнена' : (group.state == 'failed' ? 'не выполнена' : 'не участвовала') }}
{% for condition in group.conditions %}
{{ condition.field }}{% if condition.alias %} · {{ condition.alias }}{% endif %} {{ condition.actual is same as(null) ? 'нет значения' : condition.actual }} {{ condition.operator }} {{ condition.expected }} {% if condition.note %}{{ condition.note }}{% endif %}
{% endfor %} {% for child in group.children %}{{ _self.request_group(child) }}{% endfor %}
{% endmacro %} {% set public_site_tab = 'diagnostics' %} {% include '@public_site/_tabs.twig' %}
Контекст страницы

Из чего собрана страница

Введите публичный URL или ID документа. Проверка читает сохранённые данные без запуска страницы.

{% if page_error %}
Страница не разобрана

{{ page_error }}

{% endif %} {% if page_context %}
#{{ page_context.document.id }}Документ
{{ page_context.fields|length }}Полей
{{ page_context.components|length }}Связей
{{ page_context.diagnostics|length }}Результатов проверки
Результат

{{ page_context.document.title }}

{{ page_context.document.url }} · {{ page_context.rubric.title }}

Открыть документ
{% for finding in page_context.diagnostics %}
{{ finding.title }}

{{ finding.message }}

{{ finding.action }}
{% if finding.editor_url %}{% endif %}
{% endfor %}
Цепочка вывода

Шаблоны

{% for template in [page_context.templates.site, page_context.templates.rubric, page_context.templates.alternate] %} {% if template %} {{ template.title }}{{ template.type }} · {{ template.content.length }} символов{{ template.content.empty ? 'пустой' : 'заполнен' }} {% endif %} {% endfor %}
Runtime

Кеш документа

{% for type, file in page_context.cache.files %}
{{ type == 'page' ? 'Полная страница' : 'Шаблон документа' }}{{ file.path }}{{ file.exists ? file.size ~ ' Б' : 'не создан' }}
{% endfor %}
Зависимости

Подключённые компоненты

Блоки, подборки, меню и модули, найденные в активной цепочке шаблонов.

{% for item in page_context.components %} {% else %} {% endfor %}
Где подключеноКомпонентТегСостояние
{{ item.source_title }}{{ item.source_part_title }} {{ item.component_title }} {{ item.tag }} {{ item.component_status_title }} {% if item.component_url %}{% endif %}
Компоненты в шаблонах не найдены
Схема документа

Поля и фактические значения

Показываются все поля рубрики, включая пустые и обязательные.

{% for field in page_context.fields %} {% else %} {% endfor %}
ПолеТипЗначениеСостояние
{{ field.title }}{{ field.alias ?: '#' ~ field.id }} {{ field.type }} {% if field.value is iterable %}{{ field.value|json_encode }}{% else %}{{ field.value ?: '—' }}{% endif %} {{ field.required and field.empty ? 'обязательное не заполнено' : (field.empty ? 'пусто' : 'заполнено') }}
У рубрики нет полей
Подборки рубрики

Запросы

{% for item in page_context.requests %} {{ item.title }}#{{ item.id }} · {{ item.alias ?: 'без alias' }} · {{ item.executor }}{{ item.items_per_page }} {% else %}
Запросов для этой рубрики нетДокумент может использоваться напрямую или через модуль.
{% endfor %}
Оформление результатов

Представления

{% for item in page_context.presentations %} {{ item.title }}{{ item.context_code }} · {{ item.target_type }}:{{ item.target_key }}{{ item.mode }} {% else %}
Назначенных представлений нетСтраница использует обычные шаблоны AVE.cms.
{% endfor %}
Структурированный пакет страницы
{{ page_json }}
{% endif %}
Подборки

Почему документ попал в запрос

Параметры можно передать как catalog=beds&color=white или JSON-объект.

{% if target %}{% endif %}
{% if request_error %}
Запрос не проверен

{{ request_error }}

{% endif %} {% if request_explanation %}
Итог проверки

{{ request_explanation.matched ? 'Документ входит в результат' : 'Документ не входит в результат' }}

{{ request_explanation.request.title }} · {{ request_explanation.document.title }}

{{ request_explanation.matched ? 'найден' : 'исключён' }}
{% for check in request_explanation.base %}
{{ check.label }}{{ check.detail }}
{% endfor %}
{% for group in request_explanation.groups %}{{ _self.request_group(group) }}{% endfor %}
Структурированное объяснение запроса
{{ request_json }}
{% endif %} {% endblock %}