{% extends 'admin/shell.html.twig' %} {% set nav = contentType == 'post' ? 'posts' : 'pages' %} {% set plural = contentType == 'post' ? 'Beiträge' : 'Seiten' %} {% set singular = contentType == 'post' ? 'Beitrag' : 'Seite' %} {% block title %}{{ plural }}{% endblock %} {% block heading %}{{ plural }}{% endblock %} {% block styles %}{% endblock %} {% block scripts %}{% endblock %} {% block lead %}{{ plural }} suchen, bearbeiten und veröffentlichen. Entwürfe bleiben bis zur Veröffentlichung privat.{% endblock %} {% block content %} {% if is_granted('ROLE_EDITOR') %}
{{ contentType == 'post' ? 'Neuen Beitrag' : 'Neue Seite' }} anlegen

Wird als Überschrift und als Seitentitel übernommen.

Kleinbuchstaben, Ziffern und Bindestriche, zum Beispiel ueber-uns. Leer lassen, um sie aus dem Titel zu bilden.

{% if contentType == 'post' %}

{% for key, layout in postLayouts %}{{ layout.name }}: {{ layout.description }}{% if not loop.last %}
{% endif %}{% endfor %} Jeder Block lässt sich danach ändern.

{% else %} {% include 'admin/content-picker.html.twig' with {id: 'new-parent', name: 'parent_id', label: 'Übergeordnete Seite (optional)', parents: true} %} {% endif %}
{% endif %} {% include 'admin/search-feedback.html.twig' %}
{% include 'admin/content-results.html.twig' %}
{% endblock %}