Skip to content

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.

Charter Bookings in Table view with SQL SUM summary card, saved filter views, and Table/Cards/Kanban/Calendar layout switcher.

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.

site/entries/collections/bookings.yaml
title: Charter Bookings
kind: collection
layout: table
layouts: [table, cards, kanban, calendar]
kanbanField: booking_status
calendarStartField: check_in_date
calendarEndField: check_out_date
columns: [reference_code, client_name, route, booking_status, check_in_date, weekly_rate]
columnTruncate:
client_name: 32
filters: [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: true

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.

Charter Bookings switched to Kanban view with per-lane totals and drag-and-drop stage transitions.

Displays single-day or multi-day spans using calendarStartField and optional calendarEndField across Month, Week, Agenda, and Timeline views.

Charter Bookings switched to Calendar view showing multi-day embarkation to disembarkation spans.

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:

site/entries/collections/bookings.yaml
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_date

You 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.

  • Inline editing (inlineEdit: true): Edit select, toggle, checkbox, text, integer, and float cells directly inside table rows without opening the full editor.
  • SQL summary footers (summary: 'sum'): Render live sum, avg, min, max, or count totals 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: sort is 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');

Next steps