Klaro Consent Manager
=====================
TYPO3 integration of Klaro! Consent Management. Klaro! is a powerful
tool that protects the privacy and data of your visitors and helps you
run a GDPR compliant website.
Add custom purposes
-------------------
Create custom XLIFF file(s)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
EXT:sitepackage/Resources/Private/Language/Klaro/locallang.xlf
Add new Keys for purposes
~~~~~~~~~~~~~~~~~~~~~~~~~
.. code:: xml
AnalyticsThese services gather anonymous data for statistical analysis and performance optimization. Enabling analytics services assists website owners in making informed decisions to enhance online services.SecuritySecurity services are crucial for safeguarding your online experience. These services help protect your data and privacy by detecting and preventing security threats, such as malware, phishing attempts, and unauthorized access. They ensure a safer browsing environment.Live ChatLive chat services enable real-time communication with website support teams. They offer a convenient way to ask questions, seek assistance, or engage in discussions while browsing a website. Live chat enhances your online interaction and customer support experience.StylingServices related to styling help to improve the appearance of the website. This can also have an impact on usability.
The keys are structured according to the following scheme:
- Title of the Purpose: ``purposes..title``
- Description of the Purpose:
``purposes..description``
Add reference in configuration record
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Open the Klaro! configuration, go to ``Display`` → ``Translations`` →
``Locallang Path`` and enter the path to your newly created XLIFF file.
.. figure:: Documentation/Images/configuration-locallang_path.png
:alt: Locallang Path
Locallang Path
Add new items with TSconfig
~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
TCEFORM.tx_klaroconsentmanager_service.purposes.addItems {
analytics = LLL:EXT:sitepackage/Resources/Private/Language/Klaro/locallang.xlf:purposes.analytics.title
analytics.group = custom
security = LLL:EXT:sitepackage/Resources/Private/Language/Klaro/locallang.xlf:purposes.security.title
security.group = custom
livechat = LLL:EXT:sitepackage/Resources/Private/Language/Klaro/locallang.xlf:purposes.livechat.title
livechat.group = custom
styling = LLL:EXT:sitepackage/Resources/Private/Language/Klaro/locallang.xlf:purposes.styling.title
styling.group = custom
}
Finished!
~~~~~~~~~
Now you are able to select the new purposes in the configuration.
.. figure:: Documentation/Images/service-purposes-custom.png
:alt: Backend: Custom Purposes
Backend: Custom Purposes
When a custom purpose is selected for a service, it is now also
displayed in the frontend, including the description text.
.. figure:: Documentation/Images/consent-box-custom-purpose.png
:alt: Frontend: Custom Purposes
Frontend: Custom Purposes