Filter out snapshot content blocks from CMS Explore view

This commit is contained in:
Lorenz Padberg 2022-07-28 17:46:29 +02:00
parent a299ac5bcd
commit bbaa5882e0
1 changed files with 2 additions and 2 deletions

View File

@ -72,12 +72,12 @@
<div style="margin-top:10px; padding-left: 30px"> <div style="margin-top:10px; padding-left: 30px">
<ul> <ul>
{% for c in page.get_children %} {% for c in page.get_children %}
{% if not c.specific.user_created %} {% if not c.specific.user_created and not c.specific.contentblocksnapshot %}
<li> <li>
{% if page_perms.can_edit %} {% if page_perms.can_edit %}
<a href="{% url 'wagtailadmin_pages:edit' c.id %}" <a href="{% url 'wagtailadmin_pages:edit' c.id %}"
title="{% trans 'Edit this page' %}"> {{ c.get_admin_display_title }} title="{% trans 'Edit this page' %}"> {{ c.get_admin_display_title }}
</a> </a>
{% else %} {% else %}
{{ c.get_admin_display_title }} {{ c.get_admin_display_title }}
{% endif %} {% endif %}