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:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user