Views: Table, Cards, Kanban & Calendar
Every Collection opens in a Table view by default, with search, column visibility toggles, quick filters, sorting, and export actions. You can also opt in to Cards, Kanban, and Calendar layouts per collection.
Configuring layouts, Kanban, and Calendar
Section titled “Configuring layouts, Kanban, and Calendar”Declare layout (default view), layouts (allowed switcher modes), kanbanField, calendarStartField, and calendarEndField at the top level of your collection blueprint. Kanban and Calendar client bundles load only when a collection enables them.
title: Charter Bookingskind: collectionlayout: tablelayouts: [table, cards, kanban, calendar]kanbanField: booking_statuscalendarStartField: check_in_datecalendarEndField: check_out_datecolumns: [reference_code, client_name, route, booking_status, check_in_date, weekly_rate]columnTruncate: client_name: 32filters: [booking_status]sort: check_in_date
fields: booking_status: type: select label: Stage options: inquiry: Inquiry option_held: Option Held confirmed: Confirmed completed: Completed inlineEdit: true index: true
check_in_date: type: date label: Embarkation index: true
check_out_date: type: date label: Disembarkation afterField: check_in_date index: true
weekly_rate: type: float label: Weekly Rate prefix: EUR summary: sum index: trueKanban board (MarkupReactKanban)
Section titled “Kanban board (MarkupReactKanban)”Groups records into draggable lanes based on kanbanField (any single-option select or radios field, automatically indexed when used). Dragging a card across lanes updates that field immediately.
Calendar view (MarkupReactCalendar)
Section titled “Calendar view (MarkupReactCalendar)”Displays single-day or multi-day spans using calendarStartField and optional calendarEndField across Month, Week, Agenda, and Timeline views.
Named saved views (views:)
Section titled “Named saved views (views:)”Define quick-filter pill tabs above the collection listing using the top-level views: map. Each preset can combine a selector, label, icon, default sort, and preferred layout:
views: active_pipeline: label: Active Pipeline selector: 'booking_status=inquiry|option_held' icon: clock layout: kanban sort: check_in_date
confirmed: label: Confirmed selector: 'booking_status=confirmed' icon: check layout: calendar sort: check_in_dateYou can also execute any saved view in PHP via $wire->entries->collection('bookings')->view('active_pipeline', 'limit=25') or inside a selector with view=active_pipeline.
Table productivity features
Section titled “Table productivity features”- Inline editing (
inlineEdit: true): Editselect,toggle,checkbox,text,integer, andfloatcells directly inside table rows without opening the full editor. - SQL summary footers (
summary: 'sum'): Render livesum,avg,min,max, orcounttotals in the table footer. - Bulk field updates: Select multiple rows to publish, unpublish, trash, or update a shared field in one action.
- Drag-and-drop sorting: When
sort: sortis active, drag rows to reorder records.
Rendering viewports in custom admin modules
Section titled “Rendering viewports in custom admin modules”You can mount any collection’s Kanban or Calendar viewport inside your own ProcessWire admin module:
<?php
declare(strict_types=1);
namespace ProcessWire;
$entries = $this->wire()->entries;$kanbanMarkup = $entries->renderKanban('entries:charter_bookings');$calendarMarkup = $entries->renderCalendar('entries:charter_bookings');