1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-17 10:30:46 +02:00

Admin Panel: Entries - PATH_FIELDSETS used #165

This commit is contained in:
Awilum
2019-06-20 01:26:36 +03:00
parent 90a818f4cb
commit 4de3f71f2f

View File

@@ -16,7 +16,7 @@
{% set entries = entries_fetch_all(entry.slug, 'slug', 'ASC') %}
<a href="{% if entries|length > 0 %}{{ path_for('admin.entries.index') }}?id={{ entry.slug }}{% else %}{{ path_for('admin.entries.index') }}?id={{ entry.slug }}&type=editor{% endif %}">
{% if entry.fieldset %}
{% set fieldset_path = PATH_SITE ~ '/fieldsets/' ~ entry.fieldset ~ '.json' %}
{% set fieldset_path = PATH_FIELDSETS ~ '/' ~ entry.fieldset ~ '.json' %}
{% if filesystem_has(fieldset_path) %}
{% set fieldset = json_parser_decode(filesystem_read(fieldset_path)) %}
{% if fieldset.default_field %}