EXT:dashboard_base
Demos for all TYPO3 dashboard widget types, new chart classes (Line, Pie, Radar, Scatter ...) and production-ready operational widgets.
The TYPO3 dashboard is rarely used properly because complete examples are missing and several chart types are absent from core. The extension addresses this in three areas.
Demos for All Widget Types
TYPO3 ships two widget interfaces: WidgetInterface and WidgetRendererInterface.
The latter is barely documented but enables configurable widget settings directly
in the dashboard panel. On top of that there are enhancement interfaces for
JavaScript and event data.
The Dashboard Base – Samples widget group contains static demo widgets with
dummy data for all these variants, runnable and visible directly in your own TYPO3.
SampleRendererWidget demonstrates WidgetRendererInterface fully: a configurable
setting, refreshable: true, and a custom label override.
New Chart Classes
TYPO3 core only knows BarChartWidget and DoughnutChartWidget. This extension
adds: LineChartWidget, HorizontalBarChartWidget, PieChartWidget,
PolarAreaChartWidget, RadarChartWidget, ScatterChartWidget, BubbleChartWidget.
All follow the core pattern: ChartDataProviderInterface supplies the data,
registration via Services.yaml:
my_ext.widget.lineChart:
class: 'GeorgRinger\DashboardBase\Widgets\LineChartWidget'
arguments:
$dataProvider: '@My\Extension\Widgets\Provider\MyLineChartDataProvider'
tags:
- name: dashboard.widget
identifier: 'my_ext.lineChart'
groupNames: 'general'
title: 'My Line Chart'
iconIdentifier: 'content-widget-chart-bar'
height: 'medium'
width: 'medium'
Production Widgets
All production widgets use WidgetRendererInterface and are configurable via the
widget panel:
| Widget | Data source | Settings |
|---|---|---|
| Scheduler Tasks | tx_scheduler_task | onlyFailed (bool), limit (int) |
| Disk Space | Project directory | |
| Storage Size | sys_file (indexed files) | mode (storage / mount) |
| DB Table Sizes | Database schema | minSizeMb, maxTables |
| Site Statistics | Page tree via recursive CTE |
Installation
composer require georgringer/dashboard-base
Requirements
| Package | Version |
|---|---|
| TYPO3 CMS + EXT:dashboard | ≥ 14.0 |
| PHP | ≥ 8.2 |