mirror of
https://github.com/flextype/flextype.git
synced 2025-08-17 18:36:39 +02:00
Flextype 0.9.0 - [epic] #117
- Fieldsets moved to parent /site/ directory
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
{% set entries = entries_fetch_all(entry.slug, 'slug', 'ASC') %}
|
||||
<a href="{% if entries|length > 0 %}{{ base_url() }}/admin/entries?id={{ entry.slug }}{% else %}{{ base_url() }}/admin/entries/edit?id={{ entry.slug }}{% endif %}">
|
||||
{% if entry.fieldset %}
|
||||
{% set fieldset_path = PATH_THEMES ~ '/' ~ registry.settings.theme ~ '/fieldsets/' ~ entry.fieldset ~ '.json' %}
|
||||
{% set fieldset_path = PATH_SITE ~ '/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