Tweaking theme templates

This commit is contained in:
Bob den Otter
2019-07-26 16:49:57 +02:00
parent 2ab505b698
commit 9091ddab9e
2 changed files with 3 additions and 9 deletions
@@ -24,7 +24,7 @@
{%- spaceless %}
{# Set up the array of fieldnames that should be iterated. We do this by looping
over _all_ the fields, and skipping those in the 'omittedkeys' array. #}
{% set omittedkeys = [ 'id', 'slug', 'image', 'datecreated', 'datechanged', 'datepublish',
{% set omittedkeys = [ 'id', 'slug', 'datecreated', 'datechanged', 'datepublish',
'datedepublish', 'username', 'status', 'ownerid', 'templatefields' ] %}
{# Skip over the fields that are used in the slug, unless explicitly told not to,
@@ -37,12 +37,6 @@
{% if exclude|default is iterable %}
{% set omittedkeys = omittedkeys|merge(exclude) %}
{% endif %}
{# We also skip over the fields that are explicitly excluded. #}
{% if magicimage|default %}
{% set omittedkeys = omittedkeys|merge([magicimage]) %}
{% endif %}
{% endspaceless -%}
{# SECTION 2: LOOPING AND ITERATION - The actual looping is done here. #}
+2 -2
View File
@@ -20,9 +20,9 @@
{{ block('sub_fields', 'partials/_sub_fields.twig') }}
{% endwith %}
{# Uncomment this if you wish to dump the entire record to the client, for debugging purposes.
{# Comment this if you don't wish to dump the entire record to the client, for debugging purposes. #}
{{ dump(record) }}
#}
{% include 'partials/_recordfooter.twig' with { 'record': record, 'extended': true } %}