accessonaut / contao-accessibility
Adds the Accessonaut reading-aid widget (text size, contrast, reading guide, profiles) to Contao websites without layout changes: switch and public project ID per website root page, off by default.
Package info
gitlab.com/accessonaut/contao-accessibility
Type:contao-bundle
pkg:composer/accessonaut/contao-accessibility
Requires
- php: ^8.1
- contao/core-bundle: ^5.3 || ^6.0
Requires (Dev)
- contao/manager-plugin: ^2.0
Suggests
None
Provides
None
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
Replaces
None
This package is not auto-updated.
Last update: 2026-11-24 11:17:04 UTC
README
Composer package accessonaut/contao-accessibility (type contao-bundle) · License GPL-2.0-or-later
Adds the Accessonaut reading-aid widget to the public pages of a Contao website: visitors can enlarge text, raise contrast, use a reading guide, pause animations or switch on profiles such as "Dyslexia" or "Low vision". Their choices stay in their own browser. No page layout, template or theme changes are needed.
The widget is switched on per website root page, so every website of a multi-domain installation has its own switch and its own Accessonaut project. It stays off until an administrator enables it and enters the public project ID. Nothing is loaded in the Contao back end.
The widget provides optional reading and display adjustments. It does not repair the source code of your website and is not a WCAG, BITV, BFSG, EAA or other legal compliance certificate. Combine it with automated checks, manual testing and fixes in your templates and content; the Accessonaut account offers scans and a guided manual check for this.
Requirements
| Contao | PHP | Status of the Contao version (checked on 14 November 2026, contao.org release plan) |
|---|---|---|
| 5.7 LTS | 8.3 or newer | long-term support until 14 February 2029, security fixes until 14 February 2030 |
| 5.3 LTS | 8.1 or newer | long-term support until 14 February 2027, security fixes until 14 February 2028 |
| 6.0 | 8.4 or newer | active until 14 February 2027 |
Contao 4.13 has reached its end of life and is not supported; add the embed code to the page layout as described at https://accessonaut.com/integrationen/contao instead.
You also need an Accessonaut account (a free plan exists) with a project for each domain. The service delivers the project configuration only to the registered domain.
Installation
Contao Manager: search for "Accessonaut", add accessonaut/contao-accessibility, apply the changes and update the database when the Contao Manager asks for it.
Alternatively upload accessonaut-contao-<version>.zip from https://accessonaut.com/integrationen/contao in the
Contao Manager (Packages > Upload packages). The ZIP is a Composer artifact: composer.json in the root, including a
version field.
Command line:
composer require accessonaut/contao-accessibility
vendor/bin/contao-console contao:migrate
contao:migrate adds four columns to tl_page.
Configuration
- Copy the public project ID from the installation page of the Accessonaut project for this website's domain.
- In the back end open Content > Site structure and edit the website root page.
- In the section Accessonaut reading aids tick Enable the widget and the connection to the service. Further
fields appear: keep the service origin
https://accessonaut.com(an empty field means the same), enter the project ID and choose the widget language. - Save. Repeat for every website root page that should show the widget (also for language-specific root pages of the same domain).
| Field | Default | Accepted values |
|---|---|---|
| Enable | off | ticked/unticked |
| Service origin | https://accessonaut.com | HTTPS origin without path, credentials, query or fragment; empty means the default |
| Public project ID | empty | 20 to 40 lowercase letters and digits (as shown in your Accessonaut project) |
| Widget language | auto | auto, de, en, es |
The fields are validated when you save and again on every request. With auto the widget follows the language of your
Accessonaut project design, by default the lang attribute of each page and then the browser language. A fixed
language takes precedence over the project design on this website; all other design settings (colours, position,
texts) always come from your Accessonaut project.
What the bundle outputs
On every front end HTML page of an enabled website, once, immediately before </body>:
<script id="accessonaut-widget-js" src="https://accessonaut.com/widget.js" data-project-id="your-public-project-id" data-language="auto" data-design-source="central" referrerpolicy="no-referrer" defer></script>
- A
kernel.responselistener adds the tag to the finished HTML (the same mechanism Contao uses for its preview toolbar), so no page layout field is needed, whatever the layout type. It never runs for back end requests. - Contao tags cached pages with their page trail, so saving the root page invalidates the cached pages of that website. Reverse proxies and CDNs in front of Contao must be cleared separately.
- Redirects, downloads, XHR requests, non-HTML responses and documents without
</body>stay untouched. - If the page already contains the tag, or a manual embed of the same service (a script with
data-project-idthat loads<origin>/widget.js, for example in the page layout's custom JavaScript), nothing is added. Remove the old embed so the bundle takes over. - The bundle makes no server-side requests, stores nothing but the four root page fields and needs no API key.
Content Security Policy
If the Content Security Policy of the website root page is enabled (Contao 5.3+), add the service origin to
script-src and connect-src, and allow inline styles in style-src (the widget inserts style elements without a
nonce), for example:
script-src 'self' https://accessonaut.com; connect-src 'self' https://accessonaut.com; style-src 'self' 'unsafe-inline'
If your style-src contains a nonce, browsers ignore 'unsafe-inline'. Test with the report-only mode first.
External services
This bundle connects the public pages of a website to the Accessonaut service, operated by the provider named at https://accessonaut.com/impressum. Nothing is sent before an administrator ticks "Enable" on the website root page and enters a valid public project ID. The default service is https://accessonaut.com; another trusted HTTPS origin can be configured.
- Widget and configuration: on every public page load the visitor's browser loads
<service-origin>/widget.jsand the public project configuration from<service-origin>/api/widget/config. This sends the visitor's IP address, ordinary browser request data, the website origin and the public project ID. The script is requested without a referrer. The service uses these data to check the project and its plan and counts widget page views per day; it stores no visitor data. - Approved image descriptions (only if switched on in your Accessonaut project): the widget additionally requests
the approved descriptions for the current page. This request contains the page address without fragment and without
common campaign parameters (
utm_*,gclid,fbclid,msclkid). - Anonymous usage notice: when a visitor opens the reading tools, the browser sends
<service-origin>/api/widget/eventsat most once per page view and fact: that the menu was opened, the page path without query string and with identifier-like segments removed, a coarse device class (desktop, tablet, smartphone) and which reading tools and profiles were switched on. The request carries no cookies, no referrer and no identifier; the service only increments daily counters for your usage statistics and stores no IP address, user agent or per-visitor record. Browsers with Do Not Track or Global Privacy Control send no usage notices.
The reading preferences themselves are saved in the visitor's browser (local storage) and never leave it. The widget sets no cookies. This bundle sends no Contao members, users, passwords, content or API secrets and makes no server-side requests.
Terms of service: https://accessonaut.com/terms-of-service · Privacy policy: https://accessonaut.com/privacy-policy
The widget's JavaScript runs on your public website, so only connect a service you trust, and update your own privacy
information. Whether the script may load before consent is your decision after your own privacy assessment; consent
tools can recognise it by the id accessonaut-widget-js. If you block it until consent, the reading aids are only
available after consent.
Plans and branding
On the free plan the widget menu shows a small credit link ("Lesehilfen von Accessonaut", "Reading tools by Accessonaut" or "Ayudas de lectura de Accessonaut", in the widget language). It appears only after you switch the widget on; paid plans remove it. Plan entitlements and branding are managed by the service, not by a local switch.
Removing the widget
Untick "Enable" on the website root page and save, or remove the bundle (Contao Manager, or
composer remove accessonaut/contao-accessibility). After removing the bundle, contao:migrate offers to drop the
four tl_page columns. Clear proxies and CDNs afterwards.
Support
Installation guide: https://accessonaut.com/integrationen/contao · Contact: info@accessonaut.com
See CHANGELOG.md for the release history.