{% extends "_layouts/cp" %} {% set elementTypeClass = elementType %} {% set elementType = craft.elements.getElementType(elementTypeClass) %} {% set context = 'index' %} {% if not elementType %} {% exit 404 %} {% endif %} {% set sources = elementType.getSources('index') %} {% block sidebar %} {% if sources is not empty %} {% endif %} {% endblock %} {% set content %}
{% include "_elements/indexcontainer" %}
{% endset %} {% block initJs %} Craft.createElementIndex('{{ elementTypeClass }}', $('#main'), { context: '{{ context }}', showStatusMenu: {{ showStatusMenu is defined ? showStatusMenu|json_encode|raw : "'auto'" }}, showLocaleMenu: {{ showLocaleMenu is defined ? showLocaleMenu|json_encode|raw : "'auto'" }}, storageKey: 'elementindex.{{ elementTypeClass }}', criteria: { localeEnabled: null } }); {% endblock %} {% includeJs block('initJs') %}