1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-19 11:21:30 +02:00

Flextype Admin Panel: Theme #165

- using new twig extensions
This commit is contained in:
Awilum
2019-06-27 11:45:50 +03:00
parent 870fd3fa9b
commit 5004429b6d

View File

@@ -13,7 +13,7 @@
{% for entry in entries_list %}
<tr>
<td>
{% set entries = entries_fetch_all(entry.slug, 'slug', 'ASC') %}
{% set entries = entries.fetchAll(entry.slug, 'slug', 'ASC') %}
<a href="{% if entries|length > 0 %}{{ path_for('admin.entries.index') }}?id={{ entry.slug }}{% else %}{{ path_for('admin.entries.edit') }}?id={{ entry.slug }}&type=editor{% endif %}">
{% if entry.fieldset %}
{% set fieldset_path = PATH_FIELDSETS ~ '/' ~ entry.fieldset ~ '.json' %}