Skip to content

Kirby 5.1.1

list

Ordered and unordered lists

Preview

Default files

Snippet

By default, Kirby uses the following snippet to render the list block:

<?php /** @var \Kirby\Cms\Block $block */ ?>
<?= $block->text();

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

Blueprint

By default, Kirby uses the following blueprint for the list block:

name: field.blocks.list.name
icon: list-bullet
wysiwyg: true
preview: list
fields:
  text:
    label: field.blocks.list.name
    type: list

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

Vue component

kirby/src/components/Forms/Blocks/Types/List.vue