Commit a1693e0a authored by ancoats's avatar ancoats
Browse files

Initialise default Action and Campaign entry template

parent 199860ea
......@@ -44,6 +44,15 @@ fieldLayouts:
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: f27ea183-19f5-487f-a6a1-1034693a4f0a
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
type: craft\fieldlayoutelements\HorizontalRule
-
......
......@@ -44,6 +44,15 @@ fieldLayouts:
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: f27ea183-19f5-487f-a6a1-1034693a4f0a
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
type: craft\fieldlayoutelements\HorizontalRule
-
......
......@@ -13,9 +13,74 @@ fieldLayouts:
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: 3a8608a6-989f-4cf1-907c-ce86e10a951e
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: 7dbb8c7a-0300-4ad7-8dcd-9ac70b7a40ac
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
name: Content
sortOrder: 1
fields:
3a8608a6-989f-4cf1-907c-ce86e10a951e:
contentColumnType: string(840)
fieldGroup: null
handle: embedCaption
instructions: ''
name: Caption
searchable: false
settings:
byteLimit: null
charLimit: 210
code: ''
columnType: null
initialRows: '4'
multiline: ''
placeholder: ''
uiMode: normal
translationKeyFormat: null
translationMethod: site
type: craft\fields\PlainText
7dbb8c7a-0300-4ad7-8dcd-9ac70b7a40ac:
contentColumnType: text
fieldGroup: null
handle: embedTranscript
instructions: ''
name: Transcript
searchable: false
settings:
availableTransforms: '*'
availableVolumes: '*'
cleanupHtml: true
columnType: text
configSelectionMode: choose
defaultTransform: ''
manualConfig: ''
purifierConfig: ''
purifyHtml: '1'
redactorConfig: Standard.json
removeEmptyTags: '1'
removeInlineStyles: '1'
removeNbsp: '1'
showHtmlButtonForNonAdmins: ''
showUnpermittedFiles: false
showUnpermittedVolumes: false
uiMode: enlarged
translationKeyFormat: null
translationMethod: site
type: craft\redactor\Field
c991408e-3929-4dad-be5e-091c248192a7:
contentColumnType: string(255)
fieldGroup: null
......
......@@ -60,7 +60,7 @@ fields:
translationMethod: site
type: craft\fields\Assets
7b2d17c5-46aa-4348-8a7e-73775252e33e:
contentColumnType: text
contentColumnType: string(840)
fieldGroup: null
handle: imageCaption
instructions: ''
......@@ -68,7 +68,7 @@ fields:
searchable: false
settings:
byteLimit: null
charLimit: null
charLimit: 210
code: ''
columnType: null
initialRows: '4'
......
......@@ -26,7 +26,7 @@ fieldLayouts:
sortOrder: 1
fields:
685f57ea-846f-4a17-90d4-5d9f4de806fd:
contentColumnType: text
contentColumnType: string(840)
fieldGroup: null
handle: imageGridCaption
instructions: ''
......@@ -34,7 +34,7 @@ fields:
searchable: false
settings:
byteLimit: null
charLimit: null
charLimit: 210
code: ''
columnType: null
initialRows: '4'
......
......@@ -4,6 +4,15 @@ fieldLayouts:
tabs:
-
elements:
-
fieldUid: 2fc16801-291e-4589-8688-4ddc6e7168e6
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: 563e468b-5b54-4b18-81d0-abcbacbbb1eb
instructions: null
......@@ -16,6 +25,25 @@ fieldLayouts:
name: Content
sortOrder: 1
fields:
2fc16801-291e-4589-8688-4ddc6e7168e6:
contentColumnType: string(560)
fieldGroup: null
handle: referencesHeading
instructions: ''
name: Heading
searchable: false
settings:
byteLimit: null
charLimit: 140
code: ''
columnType: null
initialRows: '4'
multiline: ''
placeholder: ''
uiMode: normal
translationKeyFormat: null
translationMethod: site
type: craft\fields\PlainText
563e468b-5b54-4b18-81d0-abcbacbbb1eb:
contentColumnType: text
fieldGroup: null
......
......@@ -24,17 +24,26 @@ fields:
name: Body
searchable: false
settings:
byteLimit: null
charLimit: null
code: ''
columnType: null
initialRows: '4'
multiline: ''
placeholder: ''
uiMode: normal
availableTransforms: '*'
availableVolumes: '*'
cleanupHtml: true
columnType: text
configSelectionMode: choose
defaultTransform: ''
manualConfig: ''
purifierConfig: ''
purifyHtml: '1'
redactorConfig: Standard.json
removeEmptyTags: '1'
removeInlineStyles: '1'
removeNbsp: '1'
showHtmlButtonForNonAdmins: ''
showUnpermittedFiles: false
showUnpermittedVolumes: false
uiMode: enlarged
translationKeyFormat: null
translationMethod: site
type: craft\fields\PlainText
type: craft\redactor\Field
handle: text
name: Text
sortOrder: 1
dateModified: 1615025192
dateModified: 1616231499
email:
fromEmail: it@extinctionrebellion.be
fromName: 'Extinction Rebellion Belgium'
......
......@@ -44,7 +44,7 @@
} %}
{% endblock %}
{% endembed %}
{% include '_partials/components/shared/image-grid.twig' with {
{% include '_partials/components/shared/image-reel.twig' with {
images: entry.imageGrid.all()
} %}
{% endblock %}
......@@ -60,7 +60,7 @@
{% set page = craft.entries.section('archiveEvents').one() %}
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: page.url,
tileButtonLabel: page.title,
tileButtonLabel: 'Events calendar'|t,
tileTheme: 'orchid'
} %}
{% endblock %}
......
{% extends '_layouts/default.twig' %}
{% set templateClass = 'template-entry template-entry-action-default' %}
{% set breadcrumb = craft.entries()
.section('archiveActions')
.all() %}
{% set queryRelatedEntries = craft.entries()
.section(['posts', 'events', 'news', 'press'])
.relatedTo({
targetElement: entry,
field: 'relatedAction'
})
.orderBy('postDate desc')
.all() %}
{% block content %}
<article>
{% include '_partials/components/template-entry-type-action-default/page-header.twig' %}
{% set image = entry.featuredImage.one() %}
{% if image %}
<section class="c-panel u-background-color-black u-padding-0">
<div class="container">
{% include '_partials/components/shared/image.twig' with {
imageClass: 'c-featured-image',
imageTransform: 'ratio5x3_width1200'
} %}
</div>
</section>
{% endif %}
<div class="container u-margin-top-3 u-margin-bottom-3">
{% include '_partials/components/shared/standfirst.twig' with {
text: entry.standfirst
} %}
{% include '_partials/components/shared/content-blocks.twig' with {
contentBlocks: entry.contentBlocks.all()
} %}
</div>
</article>
{% embed '_partials/components/default/entries-list-related.twig' with {
class: 'u-background-color-black u-color-white',
heading: 'More on this action'|t,
entries: queryRelatedEntries,
context: 'related-entries'
} %}
{% block loop %}
{% for entry in entries %}
{% include '_partials/components/template-entry-action/entry-bookend.twig' %}
{% endfor %}
{% endblock %}
{% endembed %}
{% endblock %}
{% block prefooter %}
{% block a %}
{{ parent() }}
{% endblock %}
{% block b %}
{{ parent() }}
{% endblock %}
{% block c %}
{% set page = craft.entries.section('archiveActions').one() %}
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: page.url,
tileButtonLabel: page.title,
tileTheme: 'orchid'
} %}
{% endblock %}
{% endblock %}
......@@ -18,7 +18,7 @@
{% block content %}
<article>
{% include '_partials/components/template-entry-action/page-header.twig' %}
{% include '_partials/components/shared/image-grid.twig' with {
{% include '_partials/components/shared/image-reel.twig' with {
images: entry.imageGrid.all()
} %}
<section class="c-panel" data-context="headline" id="section-headline">
......
{% extends '_layouts/default.twig' %}
{% set templateClass = 'template-entry template-entry-blocks' %}
{% extends '_layouts/default.twig' %}
{% set templateClass = 'template-entry template-entry-campaign-default' %}
{% set queryRelatedEvents = craft.entries()
.section('events')
.datetimeStart('> ' ~ now | date('c'))
.orderBy('datetimeStart asc')
.relatedTo({
targetElement: entry,
field: 'relatedCampaign'
})
.limit(6)
.all() %}
{% set queryRelatedEntries = craft.entries()
.section(['posts', 'news', 'press'])
.relatedTo({
targetElement: entry,
field: 'relatedCampaign'
})
.orderBy('postDate desc')
.all() %}
{% block content %}
<article>
{% include '_partials/components/template-entry-campaign/page-header.twig' %}
{% set image = entry.featuredImage.one() %}
{% if image %}
<section class="c-panel u-background-color-black u-padding-0">
<div class="container">
{% include '_partials/components/shared/image.twig' with {
imageClass: 'c-featured-image',
imageTransform: 'ratio5x3_width1200'
} %}
</div>
</section>
{% endif %}
<div class="container u-margin-top-3 u-margin-bottom-3">
{% include '_partials/components/shared/content-blocks.twig' with {
contentBlocks: entry.contentBlocks.all()
} %}
</div>
</article>
{% embed '_partials/components/default/entries-grid-related.twig' with {
heading: 'Join our campaign events'|t,
entries: queryRelatedEvents,
class: 'u-background-color-blue-lazuli u-color-white',
} %}
{% block loop %}
{% for entry in entries %}
{% include '_partials/components/template-entry-event/entry-card.twig' %}
{% endfor %}
{% endblock %}
{% endembed %}
{% embed '_partials/components/default/entries-list-related.twig' with {
heading: 'More on this campaign'|t,
entries: queryRelatedEntries,
class: 'u-background-color-black u-color-white',
} %}
{% block loop %}
{% for entry in entries %}
{% include '_partials/components/template-entry-campaign/entry-bookend.twig' %}
{% endfor %}
{% endblock %}
{% endembed %}
{% endblock %}
{% block prefooter %}
{% block a %}
{{ parent() }}
{% endblock %}
{% block b %}
{{ parent() }}
{% endblock %}
{% block c %}
{% set page = craft.entries.section('archiveEvents').one() %}
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: page.url,
tileButtonLabel: 'Events calendar'|t,
tileTheme: 'orchid'
} %}
{% endblock %}
{% endblock %}
......@@ -82,7 +82,7 @@
{% set page = craft.entries.section('archiveEvents').one() %}
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: page.url,
tileButtonLabel: page.title,
tileButtonLabel: 'Events calendar'|t,
tileTheme: 'orchid'
} %}
{% endblock %}
......
......@@ -30,8 +30,8 @@
</div>
</section>
{% endif %}
<section class="c-panel">
<div class="container">
<div class="container">
<section class="c-panel">
{% include '_partials/components/shared/standfirst.twig' with {
text: entry.standfirst
} %}
......@@ -41,8 +41,8 @@
{% include '_partials/components/shared/button-group.twig' with {
buttons: entry.buttons
} %}
</div>
</section>
</section>
</div>
</article>
{% embed '_partials/components/default/entries-grid-related.twig' with {
entries: queryRelatedEntries,
......
......@@ -2,7 +2,7 @@
{% block content %}
{% include '_partials/components/template-page/page-header.twig' %}
{% include '_partials/components/shared/image-grid.twig' with {
{% include '_partials/components/shared/image-reel.twig' with {
images: entry.imageGrid.all()
} %}
<section class="c-panel" id="section-values">
......
......@@ -64,7 +64,7 @@
{% endblock %}
{% endembed %}
{% endif %}
{% include '_partials/components/shared/image-grid.twig' with {
{% include '_partials/components/shared/image-reel.twig' with {
images: entry.imageGrid.all()
} %}
{% endblock %}
......
......@@ -61,7 +61,7 @@
} %}
</div>
</section>
{% include '_partials/components/shared/image-grid.twig' with {
{% include '_partials/components/shared/image-reel.twig' with {
images: entry.imageGrid.all()
} %}
<section class="c-panel u-background-color-pink" id="section-forms">
......
......@@ -9,6 +9,6 @@
{% include '_page-templates/template-entry-type-action.twig' %}
{% default %}
{% include '_page-templates/template-entry-type-blocks.twig' %}
{% include '_page-templates/template-entry-type-action-default.twig' %}
{% endswitch %}
......@@ -9,6 +9,6 @@
{% include '_page-templates/template-entry-type-campaign.twig' %}
{% default %}
{% include '_page-templates/template-entry-type-blocks.twig' %}
{% include '_page-templates/template-entry-type-campaign-default.twig' %}
{% endswitch %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment