Configuration
Extension configuration
Admin Tools > Settings > Extension Configuration > klimadashboard
| Setting | Default | Description |
|---|---|---|
base, base, base | https:// … | Hosts the charts are embedded from, e.g. for a staging instance. |
default | de | Site used when an element has none set. |
directus | https:// | Public Klimadashboard data API (charts, regions). |
cache | 14400 | Cache lifetime of API responses in seconds. |
exclude | test* | Chart types hidden from the chart select (comma separated, wildcards allowed). |
region | group,state,district | Region levels offered in the region select. |
region | DE,AT | Countries offered in the region select. |
skins | (empty) | Additional design skins, as id:, comma separated, e.g.
my-. |
fetch | on | Also load the list of skins from Klimadashboard. |
consent | off | Load charts only after a click by default. |
privacy | Klimadashboard privacy policy | Linked in the click-to-load notice. |
Page TSconfig
All fields are normal TCA fields, so the usual Page TSconfig applies. Preselect a skin and the site, and remove options editors should not use:
EXT:my_sitepackage/Configuration/page.tsconfig
TCAdefaults.tt_content {
tx_klimadashboard_skin = my-skin
tx_klimadashboard_site = de
}
TCEFORM.tt_content.tx_klimadashboard_site.removeItems = at,org
Copied!
Styling
The click-to-load notice uses CSS custom properties, which you can override in your site CSS:
.klimadashboard-embed {
--klimadashboard-consent-bg: #f3f4f6;
--klimadashboard-consent-color: #1f2937;
--klimadashboard-button-bg: #1f6f5c;
--klimadashboard-button-color: #ffffff;
--klimadashboard-focus: #1f2937;
}
Copied!
The template can be overridden with a higher
tt_ entry; the template name is
Klimadashboard.