TYPO3 Records List Types
Source: https://github.com/dirnbauer/webconsulting-skills
Compatibility: TYPO3 v14.0+ / PHP 8.3+
Extension key: records_list_types / Composer package name: webconsulting/records-list-types
GitHub: https://github.com/dirnbauer/typo3-records-list-types
Extension version: Use the GitHub repository / composer.json of webconsulting/records-list-types as the source of truth — this skill’s YAML version is for the skill document only.
Composer / Packagist: Confirm on Packagist whether webconsulting/records-list-types is published. If not, add a repositories → vcs entry in the root composer.json pointing at the GitHub repo, then composer require vendor/package:dev-main (or a tag). Plain composer require webconsulting/records-list-types fails until the package is registered or aliased.
TYPO3 API First: Always use TYPO3's built-in APIs, core features, and established conventions before creating custom implementations. Do not reinvent what TYPO3 already provides. Always verify that the APIs and methods you use exist and are not deprecated in TYPO3 v14 by checking the official TYPO3 documentation.
1. Overview
Transforms the TYPO3 backend Records module with multiple view modes:
| View |
Description |
Best for |
| List |
Standard TYPO3 table (unchanged) |
Data-heavy tables, system records |
| Grid |
Card layout with thumbnails, drag-and-drop |
News, products, team members, media |
| Compact |
Dense single-line rows, fixed columns |
Address books, logs, settings, bulk data |
| Teaser |
Minimal cards with title, date, excerpt |
Blog posts, events, press releases |
| Custom |
Your own views via TSconfig + Fluid |
Timeline, kanban, catalog, gallery |
All views include: pagination, sorting, search, record actions, workspace indicators, dark mode, WCAG 2.1 accessibility.
Features
- Grid View -- Card-based layout with thumbnails, drag-and-drop reordering, and field display
- Compact View -- Dense single-line rows with fixed columns and horizontal scrolling
- Teaser View -- News-style cards with title, date, and description excerpt
- Custom Views -- Register your own view types via PSR-14 events or TSconfig
- Drag & Drop -- Mouse and keyboard reordering with full WCAG 2.1 accessibility
- Language Flags -- Language flag icons displayed per record in grid cards
- Workspace Support -- Color-coded indicators for new, modified, moved, and deleted records
- Dark Mode -- Full compatibility with TYPO3's dark mode (light/dark themes)
- Per-Table Config -- Configure title, description, image, and display fields via TSconfig
- User Preferences -- View mode is persisted per backend user via AJAX
- Sorting Controls -- Manual drag ordering and field-based sorting with direction toggle
- Pagination -- Matches TYPO3 Core: multi-table mode shows limited records with "Expand table" button, single-table mode shows full pagination (record range, page input, first/prev/next/last)
- Image Preview Hint -- Subtle notice below thumbnails reminding editors that the image may not appear on the frontend for certain record types
- Zero-PHP Extensibility -- Add new view types with just TSconfig + Fluid template + CSS, no PHP classes needed
- Search -- Client-side search filtering across all view modes
- Accessibility -- WCAG 2.1 compliant keyboard navigation, ARIA labels, and screen reader support
2. Installation
composer require webconsulting/records-list-types
./vendor/bin/typo3 extension:setup -e records_list_types
After activation, view mode toggle buttons appear in the Records module header.
3. View Mode Configuration
Set Default and Allowed Views
mod.web_list.viewMode {
default = grid # Default for new users
allowed = list,grid,compact,teaser # Available in toggle
}
Grid Column Count
mod.web_list.gridView.cols = 4 # 2-6 columns (default: 4)
View Mode Resolution Order
- URL parameter (
?displayMode=grid) -- highest priority
- User preference (stored via AJAX, persisted per session)
- TSconfig default (
mod.web_list.viewMode.default)
- Fallback:
list
4. Per-Table Field Configuration
Configure which fields appear on cards for each table:
mod.web_list.gridView.table.<tableName> {
titleField = title # Card title (default: TCA ctrl.label)
descriptionField = teaser # Card body text
imageField = fal_media # FAL field for thumbnail
preview = 1 # Enable thumbnails (1/0)
}
Common Tables
# News
mod.web_list.gridView.table.tx_news_domain_model_news {
titleField = title
descriptionField = teaser
imageField = fal_media
preview = 1
}
# Pages
mod.web_list.gridView.table.pages {
titleField = title
descriptionField = abstract
imageField = media
preview = 1
}
# Content Elements
mod.web_list.gridView.table.tt_content {
titleField = header
descriptionField = bodytext
imageField = image
preview = 1
}
# Frontend Users
mod.web_list.gridView.table.fe_users {
titleField = name
descriptionField = email
imageField = image
preview = 1
}
5. View Modes Detail
Grid View
- Card structure: Header (icon, title, drag handle, actions), optional thumbnail image (16:9), field values body, footer (UID, PID, language flag)
- Thumbnails: Automatically resolved from FAL image fields (configurable per table)
- Field display: Type-aware formatting -- booleans as badges, dates in monospace, relations with count indicators, links as clickable, text truncated with ellipsis
- Two-column field layout: Small fields display side-by-side; text/richtext fields span full width
- Drag-and-drop: Both mouse and keyboard (Space to grab, arrows to move, Space to drop, Escape to cancel)
- Record actions: Inline visibility toggle, edit, delete, plus dropdown for info, history, copy, cut
- State indicators: Hidden records get amber headers; workspace records show blue/purple/cyan/red headers
- Language flags: Each card shows the record's language flag icon in the bottom-right corner
- Responsive grid: Auto-fills columns from 320px minimum, scales from 1 column on mobile to multiple on wide screens
Compact View
- Fixed columns: Icon, UID, and title pinned on the left; status toggle, edit, delete pinned on the right
- Scrollable middle: Additional fields scroll horizontally between fixed columns
- Scroll shadows: Visual indicators when content extends beyond the visible area
- Sortable headers: Click column headers to sort ascending/descending via TYPO3's native dropdown API
- Zebra striping: Alternating row colors for readability
- Hidden record styling: Muted background and dimmed title for hidden records
Teaser View
- Clean design: Title, date with calendar icon, description excerpt (2-line clamp)
- Status badges: UID pill and hidden/visible indicator
- Compact actions: Visibility toggle, edit, delete buttons
- Hidden state: Accent bar on hidden records
- CSS
light-dark(): Native theme switching support
6. Pagination
Matches TYPO3 Core List View behavior:
- Multi-table mode: Limited records per table with "Expand table" button
- Single-table mode: Full pagination (record range, page input, first/prev/next/last)
# Global default items per page
mod.web_list.viewMode.itemsPerPage = 100
# Per-type override
mod.web_list.viewMode.types.grid.itemsPerPage = 100
mod.web_list.viewMode.types.compact.itemsPerPage = 300
mod.web_list.viewMode.types.teaser.itemsPerPage = 100
# Disable pagination
mod.web_list.viewMode.types.grid.itemsPerPage = 0
7. Sorting
Tables with TCA sortby support two modes:
- Manual: Drag-and-drop reordering (default)
- Field: Sort by column with ascending/descending toggle
A segmented toggle switches between modes. Drag-and-drop supports both mouse and keyboard (Space to grab, arrows to move, Space to drop, Escape to cancel).
8. Custom View Types (Quick Start)
Add a view in 3 steps -- zero PHP required.
Step 1: Register via TSconfig
mod.web_list.viewMode {
allowed = list,grid,compact,teaser,timeline
types.timeline {
label = Timeline
icon = actions-calendar
template = TimelineView
templateRootPath = EXT:my_sitepackage/Resources/Private/Backend/Templates/
css = EXT:my_sitepackage/Resources/Public/Css/timeline.css
displayColumns = label,datetime,teaser
columnsFromTCA = 0
}
}
Step 2: Create Fluid Template
Copy GenericView.html from the extension as a starting point. Key variables: tableData, tableData.records, record.title, record.displayValues.
Step 3: Add CSS (optional)
Use TYPO3 CSS variables for automatic dark mode:
.timeline-item {
/* TYPO3 Core fallbacks; `--gv-*` tokens are defined by this extension, not by TYPO3 Core */
background: var(--typo3-component-bg, #fff);
border: 1px solid var(--typo3-component-border-color, #d4d4d8);
}
Full documentation: See SKILL-CUSTOM-VIEWS.md for complete reference including template variables, real-world examples, asset loading, PSR-14 registration, and page-scoped views.
Reuse Built-in Templates
No new template needed -- reuse existing ones with custom columns:
# Address book using CompactView with fixed columns
mod.web_list.viewMode.types.addressbook {
label = Address Book
icon = actions-user
template = CompactView
displayColumns = name,email,phone,company,city
columnsFromTCA = 0
itemsPerPage = 500
}
Page-Scoped Views
Restrict views to specific pages:
[traverse(page, "uid") == 42]
mod.web_list.viewMode {
allowed = list,timeline
default = timeline
}
[END]
9. Column Display
Two modes control which fields appear:
| Mode |
Setting |
Behavior |
| Editor-controlled |
columnsFromTCA = 1 |
Respects editor's "Show columns" selection |
| Fixed layout |
columnsFromTCA = 0 |
Uses displayColumns list exactly |
columnsFromTCA = 1 Resolution Order
- Editor's "Show columns" selection (stored per-user per-table)
- This extension’s own TSconfig / template resolution — not Core
mod.web_list.table.<table>.showFields (that path is not a documented Core column picker). See extension docs and GridConfigurationService behaviour for your release.
- TCA
ctrl.label and sensible text/date fallbacks (see “Special Column Names” below) — TYPO3 v14 removed ctrl.searchFields; backend search now auto-includes suitable fields and can be tuned per-column via searchable, which is unrelated to this list display.
- Label field only (final fallback)
Special Column Names
| Name |
Resolves to |
label |
TCA ctrl.label field (record title) |
datetime |
First date field (datetime, date, starttime, crdate) |
teaser |
First description field (teaser, abstract, description, bodytext, short) |
10. TSconfig Reference
View Type Options
| Option |
Type |
Default |
Description |
label |
string |
required |
Display name (supports LLL:) |
icon |
string |
required |
TYPO3 icon identifier |
description |
string |
|
Tooltip |
template |
string |
<Id>View |
Fluid template name |
partial |
string |
Card |
Default partial |
templateRootPath |
string |
|
Custom template path |
partialRootPath |
string |
|
Custom partial path |
layoutRootPath |
string |
|
Custom layout path |
css |
string |
|
CSS file (EXT: syntax) |
js |
string |
|
JS module (@vendor/module.js) |
columnsFromTCA |
bool |
1 |
Use editor column selection |
displayColumns |
string |
|
Comma-separated field list |
itemsPerPage |
int |
100 |
Records per page (0 = no pagination) |
11. Workspace Support
Records display color-coded indicators in workspaces:
| State |
Color |
Visual |
| New |
Blue |
Blue header + left border |
| Modified |
Purple |
Purple header + left border |
| Moved |
Cyan |
Cyan header + left border |
| Deleted |
Red |
Red header + strikethrough title |
Workspace overlays applied via BackendUtility::workspaceOL().
Note: Workspace support is experimental. Visual indicators work, but drag-and-drop within workspaces has limited testing.
Detailed Reference
Read the full guide when the task needs detailed examples, long templates, troubleshooting matrices, appendices, or sections not included above. Keep this file unloaded for narrow tasks so the skill follows progressive disclosure.
1---2name: typo3-records-list-types3description: Configures TYPO3 v14 Records module list types and custom backend views, including grid, compact, teaser, kanban-style, timeline-style, TSconfig, Fluid templates, icons, and accessibility. Use when the user mentions records list types, backend record cards, custom Records module views, grid view, compact view, teaser view, or TSconfig-driven record presentation.4license: MIT / CC-BY-SA-4.05---6# TYPO3 Records List Types78> Source: https://github.com/dirnbauer/webconsulting-skills910> **Compatibility:** TYPO3 v14.0+ / PHP 8.3+11> Extension key: `records_list_types` / Composer package name: `webconsulting/records-list-types`12> GitHub: https://github.com/dirnbauer/typo3-records-list-types13>14> **Extension version:** Use the **GitHub repository** / `composer.json` of `webconsulting/records-list-types` as the source of truth — this skill’s YAML `version` is for the **skill document** only.15>16> **Composer / Packagist:** Confirm on [Packagist](https://packagist.org/) whether `webconsulting/records-list-types` is published. If not, add a **`repositories` → `vcs`** entry in the **root** `composer.json` pointing at the GitHub repo, then `composer require vendor/package:dev-main` (or a tag). Plain `composer require webconsulting/records-list-types` **fails** until the package is registered or aliased.1718> **TYPO3 API First:** Always use TYPO3's built-in APIs, core features, and established conventions before creating custom implementations. Do not reinvent what TYPO3 already provides. Always verify that the APIs and methods you use exist and are not deprecated in TYPO3 v14 by checking the official TYPO3 documentation.1920## 1. Overview2122Transforms the TYPO3 backend **Records** module with multiple view modes:2324| View | Description | Best for |25|------|-------------|----------|26| **List** | Standard TYPO3 table (unchanged) | Data-heavy tables, system records |27| **Grid** | Card layout with thumbnails, drag-and-drop | News, products, team members, media |28| **Compact** | Dense single-line rows, fixed columns | Address books, logs, settings, bulk data |29| **Teaser** | Minimal cards with title, date, excerpt | Blog posts, events, press releases |30| **Custom** | Your own views via TSconfig + Fluid | Timeline, kanban, catalog, gallery |3132All views include: pagination, sorting, search, record actions, workspace indicators, dark mode, WCAG 2.1 accessibility.3334### Features3536- **Grid View** -- Card-based layout with thumbnails, drag-and-drop reordering, and field display37- **Compact View** -- Dense single-line rows with fixed columns and horizontal scrolling38- **Teaser View** -- News-style cards with title, date, and description excerpt39- **Custom Views** -- Register your own view types via PSR-14 events or TSconfig40- **Drag & Drop** -- Mouse and keyboard reordering with full WCAG 2.1 accessibility41- **Language Flags** -- Language flag icons displayed per record in grid cards42- **Workspace Support** -- Color-coded indicators for new, modified, moved, and deleted records43- **Dark Mode** -- Full compatibility with TYPO3's dark mode (light/dark themes)44- **Per-Table Config** -- Configure title, description, image, and display fields via TSconfig45- **User Preferences** -- View mode is persisted per backend user via AJAX46- **Sorting Controls** -- Manual drag ordering and field-based sorting with direction toggle47- **Pagination** -- Matches TYPO3 Core: multi-table mode shows limited records with "Expand table" button, single-table mode shows full pagination (record range, page input, first/prev/next/last)48- **Image Preview Hint** -- Subtle notice below thumbnails reminding editors that the image may not appear on the frontend for certain record types49- **Zero-PHP Extensibility** -- Add new view types with just TSconfig + Fluid template + CSS, no PHP classes needed50- **Search** -- Client-side search filtering across all view modes51- **Accessibility** -- WCAG 2.1 compliant keyboard navigation, ARIA labels, and screen reader support5253## 2. Installation5455```bash56composer require webconsulting/records-list-types57./vendor/bin/typo3 extension:setup -e records_list_types58```5960After activation, view mode toggle buttons appear in the Records module header.6162## 3. View Mode Configuration6364### Set Default and Allowed Views6566```tsconfig67mod.web_list.viewMode {68 default = grid # Default for new users69 allowed = list,grid,compact,teaser # Available in toggle70}71```7273### Grid Column Count7475```tsconfig76mod.web_list.gridView.cols = 4 # 2-6 columns (default: 4)77```7879### View Mode Resolution Order80811. **URL parameter** (`?displayMode=grid`) -- highest priority822. **User preference** (stored via AJAX, persisted per session)833. **TSconfig default** (`mod.web_list.viewMode.default`)844. **Fallback**: `list`8586## 4. Per-Table Field Configuration8788Configure which fields appear on cards for each table:8990```tsconfig91mod.web_list.gridView.table.<tableName> {92 titleField = title # Card title (default: TCA ctrl.label)93 descriptionField = teaser # Card body text94 imageField = fal_media # FAL field for thumbnail95 preview = 1 # Enable thumbnails (1/0)96}97```9899### Common Tables100101```tsconfig102# News103mod.web_list.gridView.table.tx_news_domain_model_news {104 titleField = title105 descriptionField = teaser106 imageField = fal_media107 preview = 1108}109110# Pages111mod.web_list.gridView.table.pages {112 titleField = title113 descriptionField = abstract114 imageField = media115 preview = 1116}117118# Content Elements119mod.web_list.gridView.table.tt_content {120 titleField = header121 descriptionField = bodytext122 imageField = image123 preview = 1124}125126# Frontend Users127mod.web_list.gridView.table.fe_users {128 titleField = name129 descriptionField = email130 imageField = image131 preview = 1132}133```134135## 5. View Modes Detail136137### Grid View138139- **Card structure**: Header (icon, title, drag handle, actions), optional thumbnail image (16:9), field values body, footer (UID, PID, language flag)140- **Thumbnails**: Automatically resolved from FAL image fields (configurable per table)141- **Field display**: Type-aware formatting -- booleans as badges, dates in monospace, relations with count indicators, links as clickable, text truncated with ellipsis142- **Two-column field layout**: Small fields display side-by-side; text/richtext fields span full width143- **Drag-and-drop**: Both mouse and keyboard (Space to grab, arrows to move, Space to drop, Escape to cancel)144- **Record actions**: Inline visibility toggle, edit, delete, plus dropdown for info, history, copy, cut145- **State indicators**: Hidden records get amber headers; workspace records show blue/purple/cyan/red headers146- **Language flags**: Each card shows the record's language flag icon in the bottom-right corner147- **Responsive grid**: Auto-fills columns from 320px minimum, scales from 1 column on mobile to multiple on wide screens148149### Compact View150151- **Fixed columns**: Icon, UID, and title pinned on the left; status toggle, edit, delete pinned on the right152- **Scrollable middle**: Additional fields scroll horizontally between fixed columns153- **Scroll shadows**: Visual indicators when content extends beyond the visible area154- **Sortable headers**: Click column headers to sort ascending/descending via TYPO3's native dropdown API155- **Zebra striping**: Alternating row colors for readability156- **Hidden record styling**: Muted background and dimmed title for hidden records157158### Teaser View159160- **Clean design**: Title, date with calendar icon, description excerpt (2-line clamp)161- **Status badges**: UID pill and hidden/visible indicator162- **Compact actions**: Visibility toggle, edit, delete buttons163- **Hidden state**: Accent bar on hidden records164- **CSS `light-dark()`**: Native theme switching support165166## 6. Pagination167168Matches TYPO3 Core List View behavior:169170- **Multi-table mode**: Limited records per table with "Expand table" button171- **Single-table mode**: Full pagination (record range, page input, first/prev/next/last)172173```tsconfig174# Global default items per page175mod.web_list.viewMode.itemsPerPage = 100176177# Per-type override178mod.web_list.viewMode.types.grid.itemsPerPage = 100179mod.web_list.viewMode.types.compact.itemsPerPage = 300180mod.web_list.viewMode.types.teaser.itemsPerPage = 100181182# Disable pagination183mod.web_list.viewMode.types.grid.itemsPerPage = 0184```185186## 7. Sorting187188Tables with TCA `sortby` support two modes:189190- **Manual**: Drag-and-drop reordering (default)191- **Field**: Sort by column with ascending/descending toggle192193A segmented toggle switches between modes. Drag-and-drop supports both mouse and keyboard (Space to grab, arrows to move, Space to drop, Escape to cancel).194195## 8. Custom View Types (Quick Start)196197Add a view in **3 steps** -- zero PHP required.198199### Step 1: Register via TSconfig200201```tsconfig202mod.web_list.viewMode {203 allowed = list,grid,compact,teaser,timeline204205 types.timeline {206 label = Timeline207 icon = actions-calendar208 template = TimelineView209 templateRootPath = EXT:my_sitepackage/Resources/Private/Backend/Templates/210 css = EXT:my_sitepackage/Resources/Public/Css/timeline.css211 displayColumns = label,datetime,teaser212 columnsFromTCA = 0213 }214}215```216217### Step 2: Create Fluid Template218219Copy `GenericView.html` from the extension as a starting point. Key variables: `tableData`, `tableData.records`, `record.title`, `record.displayValues`.220221### Step 3: Add CSS (optional)222223Use TYPO3 CSS variables for automatic dark mode:224225```css226.timeline-item {227 /* TYPO3 Core fallbacks; `--gv-*` tokens are defined by this extension, not by TYPO3 Core */228 background: var(--typo3-component-bg, #fff);229 border: 1px solid var(--typo3-component-border-color, #d4d4d8);230}231```232233> **Full documentation**: See [SKILL-CUSTOM-VIEWS.md](SKILL-CUSTOM-VIEWS.md) for complete reference including template variables, real-world examples, asset loading, PSR-14 registration, and page-scoped views.234235### Reuse Built-in Templates236237No new template needed -- reuse existing ones with custom columns:238239```tsconfig240# Address book using CompactView with fixed columns241mod.web_list.viewMode.types.addressbook {242 label = Address Book243 icon = actions-user244 template = CompactView245 displayColumns = name,email,phone,company,city246 columnsFromTCA = 0247 itemsPerPage = 500248}249```250251### Page-Scoped Views252253Restrict views to specific pages:254255```tsconfig256[traverse(page, "uid") == 42]257 mod.web_list.viewMode {258 allowed = list,timeline259 default = timeline260 }261[END]262```263264## 9. Column Display265266Two modes control which fields appear:267268| Mode | Setting | Behavior |269|------|---------|----------|270| **Editor-controlled** | `columnsFromTCA = 1` | Respects editor's "Show columns" selection |271| **Fixed layout** | `columnsFromTCA = 0` | Uses `displayColumns` list exactly |272273### `columnsFromTCA = 1` Resolution Order2742751. **Editor's "Show columns" selection** (stored per-user per-table)2762. **This extension’s own TSconfig / template resolution** — not Core `mod.web_list.table.<table>.showFields` (that path is not a documented Core column picker). See extension docs and `GridConfigurationService` behaviour for your release.2773. **TCA `ctrl.label` and sensible text/date fallbacks** (see “Special Column Names” below) — TYPO3 v14 removed `ctrl.searchFields`; backend search now auto-includes suitable fields and can be tuned per-column via `searchable`, which is unrelated to this list display.2784. **Label field only** (final fallback)279280### Special Column Names281282| Name | Resolves to |283|------|-------------|284| `label` | TCA `ctrl.label` field (record title) |285| `datetime` | First date field (`datetime`, `date`, `starttime`, `crdate`) |286| `teaser` | First description field (`teaser`, `abstract`, `description`, `bodytext`, `short`) |287288## 10. TSconfig Reference289290### View Type Options291292| Option | Type | Default | Description |293|--------|------|---------|-------------|294| `label` | string | *required* | Display name (supports `LLL:`) |295| `icon` | string | *required* | TYPO3 icon identifier |296| `description` | string | | Tooltip |297| `template` | string | `<Id>View` | Fluid template name |298| `partial` | string | `Card` | Default partial |299| `templateRootPath` | string | | Custom template path |300| `partialRootPath` | string | | Custom partial path |301| `layoutRootPath` | string | | Custom layout path |302| `css` | string | | CSS file (`EXT:` syntax) |303| `js` | string | | JS module (`@vendor/module.js`) |304| `columnsFromTCA` | bool | `1` | Use editor column selection |305| `displayColumns` | string | | Comma-separated field list |306| `itemsPerPage` | int | `100` | Records per page (`0` = no pagination) |307308## 11. Workspace Support309310Records display color-coded indicators in workspaces:311312| State | Color | Visual |313|-------|-------|--------|314| New | Blue | Blue header + left border |315| Modified | Purple | Purple header + left border |316| Moved | Cyan | Cyan header + left border |317| Deleted | Red | Red header + strikethrough title |318319Workspace overlays applied via `BackendUtility::workspaceOL()`.320321> **Note:** Workspace support is experimental. Visual indicators work, but drag-and-drop within workspaces has limited testing.322323324## Detailed Reference325326Read [the full guide](references/full-guide.md) when the task needs detailed examples, long templates, troubleshooting matrices, appendices, or sections not included above. Keep this file unloaded for narrow tasks so the skill follows progressive disclosure.