mirror of
https://github.com/jbcr/core.git
synced 2026-04-23 16:48:17 +02:00
Tweaking theme templates
This commit is contained in:
@@ -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. #}
|
||||
|
||||
@@ -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 } %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user