mirror of
https://github.com/flextype/flextype.git
synced 2025-08-19 19:31:31 +02:00
Flextype Core: JsonParserTwigExtension renamed to JsonTwigExtension
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
{% if entry.fieldset %}
|
||||
{% set fieldset_path = PATH_FIELDSETS ~ '/' ~ entry.fieldset ~ '.json' %}
|
||||
{% if filesystem_has(fieldset_path) %}
|
||||
{% set fieldset = json_parser_decode(filesystem_read(fieldset_path)) %}
|
||||
{% set fieldset = json_decode(filesystem_read(fieldset_path)) %}
|
||||
{% if fieldset.default_field %}
|
||||
{% if entry[fieldset.default_field] != '' %}
|
||||
{{ entry[fieldset.default_field] }}
|
||||
|
Reference in New Issue
Block a user