{% extends "base.html" %} {% load wagtailcore_tags static %} {% block content %}
Theme: {{ page.theme }}
Layout: {{ page.layout }}
These settings were chosen using ThumbnailRadioSelect widgets in the Wagtail admin!
Selected: {{ page.directory_icon }}
No icon selected — edit the page to pick one from the directory picker.
{% endif %}
Icons scanned automatically from
static/icons/
{{ block.value.content }}
{% endif %}Selected scheme: {{ block.value.scheme }}
Icon field is optional - can be left blank
Icon field is required - must select an icon
thumbnail_is_one_color=True (image-based)
thumbnail_is_one_color=True (template-based) — in the Wagtail admin, this template's fill="currentColor" SVG is tinted to match the surrounding text color. Here on the front end it just renders as authored, with no tinting applied.
Selected: {{ block.value }}
No icon selected
{% endif %}
Icons loaded automatically from static/icons/
This is a demo of the Wagtail Thumbnail Choice Block. To see it in action: