Download the PHP package t3g/usercentrics without Composer
On this page you can find all versions of the php package t3g/usercentrics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download t3g/usercentrics
More information about t3g/usercentrics
Files in t3g/usercentrics
Package usercentrics
Short Description This extension provides a usercentrics integration into TYPO3.
License GPL-2.0-or-later
Homepage https://extensions.typo3.org/extension/usercentrics/
Informations about the package usercentrics
Usercentrics Integration for TYPO3
This extension integrates Usercentrics (Compliance and Consent Management) into TYPO3.
Installation and Configuration
-
Download and install the extension from the TER or via composer:
- TER: https://extensions.typo3.org/extension/usercentrics
- Composer: composer require t3g/usercentrics
-
Activate the extension in the extension manager
-
On every site where you want to use the extension, include the static TypoScript setup
-
Configure your Usercentrics ID by setting
plugin.tx_usercentrics.settingsId = <your-id>
in your TypoScript setup - Configure the JS Files to be handled by Usercentrics:
Note that the configured identifiers need to match your Usercentrics configuration.
You do not need to set the type
or data-usercentrics
attributes for the script tags, the extension will handle that for you.
Usage in Fluid
The extension comes with a custom view helper which can be used to add scripts via Fluid:
Integrate Usercentrics with PHP
Since TYPO3 v10 the AssetCollector is part of the TYPO3 Core API. To add scripts managed by Usercentrics via PHP, replace your previous calls to the PageRenderer
with AssetCollector
calls and make sure to
set the attributes type=text/plain
and data-usercentrics=identifer
.
Example: