Skip to content

Kirby 3.7.5

quote

A quote with optional citation

Preview

Default files

Snippet

<?php /** @var \Kirby\Cms\Block $block */ ?>
<blockquote>
  <?= $block->text() ?>
  <?php if ($block->citation()->isNotEmpty()): ?>
  <footer>
    <?= $block->citation() ?>
  </footer>
  <?php endif ?>
</blockquote>

To overwrite this default snippet, place your custom file in /site/snippets/blocks/quote.php.

Blueprint

name: field.blocks.quote.name
icon: quote
wysiwyg: true
preview: quote
fields:
  text:
    label: field.blocks.quote.text.label
    placeholder: field.blocks.quote.text.placeholder
    type: writer
    inline: true
    icon: quote
  citation:
    label: field.blocks.quote.citation.label
    placeholder: field.blocks.quote.citation.placeholder
    type: writer
    inline: true
    icon: user

To overwrite this default blueprint, place your custom file in /site/blueprints/blocks/quote.yml.

Vue component

kirby/blob/main/panel/src/components/Forms/Blocks/Types/Quote.vue