Commit d5f685d5 authored by ancoats's avatar ancoats
Browse files

Add callout field to press release entry template

parent f4fcf569
......@@ -46,6 +46,15 @@ fieldLayouts:
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: 332d69eb-c692-415d-bbe9-41b4d82bc3de
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
name: Content
sortOrder: 1
-
......
contentColumnType: text
fieldGroup: 6d4ad12a-ece8-4542-91ef-a6de28e1ef45
handle: callout
instructions: ''
name: Callout
searchable: false
settings:
availableTransforms: '*'
availableVolumes: '*'
cleanupHtml: true
columnType: text
configSelectionMode: choose
defaultTransform: ''
manualConfig: ''
purifierConfig: ''
purifyHtml: '1'
redactorConfig: Prompt.json
removeEmptyTags: '1'
removeInlineStyles: '1'
removeNbsp: '1'
showHtmlButtonForNonAdmins: ''
showUnpermittedFiles: false
showUnpermittedVolumes: false
uiMode: enlarged
translationKeyFormat: null
translationMethod: site
type: craft\redactor\Field
dateModified: 1611428597
dateModified: 1611517680
email:
fromEmail: it@extinctionrebellion.be
fromName: 'Extinction Rebellion Belgium'
......
{
"buttons": ["bold", "italic"],
"buttons": ["bold", "italic", "link"],
"enterKey": false,
"pasteImages": false,
"pastePlainText": true,
......
......@@ -5,6 +5,29 @@
.section('archivePress')
.all() %}
{% block content %}
<article>
{% include '_partials/components/template-entry/page-header.twig' %}
<section class="c-panel">
<div class="container">
<div class="s-redactor">
{{ entry.body }}
</div>
{% if entry.callout %}
{% include '_partials/components/shared/prompt.twig' with {
promptContent: entry.callout,
promptStyle: 'ghost',
promptType: 'information'
} %}
{% endif %}
{% include '_partials/components/template-entry/meta-grid.twig' with {
metaFields: ['author']
} %}
</div>
</section>
</article>
{% endblock %}
{% block prefooter %}
{% block a %}
{{ parent() }}
......
{% extends '_layouts/default.twig' %}
{% set templateClass = templateClass | default('template-entry') %}
{% block content %}
<article>
{% include '_partials/components/template-entry/page-header.twig' %}
<section class="c-panel">
<div class="container">
<div class="s-redactor">
{{ entry.body }}
</div>
{% include '_partials/components/template-entry/meta-grid.twig' with {
metaFields: ['author']
} %}
</div>
</section>
</article>
{% endblock %}
This diff is collapsed.
This diff is collapsed.
source @ 6cd26c95
Subproject commit d07f23719a4f9634bd029a0d7fa444c464142b28
Subproject commit 6cd26c955f48730f21bd4bf34f65fb886cc1ee57
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