---
title: "Integration"
version: "8.1"
permalink: "https://docs.typo3.org/permalink/supseven/supi:integration@8.1"
source: "Integration/Index.rst"
rendered: "2026-12-01T13:30:19+00:00"
---

# Integration {#integration}

## Setup {#setup}

You need to integrate the shipped TypoScript (e.g. in your theme Extension) and
add a cObject into your Page Template/Layout

### TypoScript {#typoscript}

Include the shipped TypoScript File into your Theme TypoScript Setup:

```typoscript
@import "EXT:supi/Configuration/TypoScript/setup.typoscript"
```

### Fluid/HTML {#fluid-html}

Include the cObject in your Page Layout

```html
<f:cObject typoscriptObjectPath="lib.elements.supi" />
```

> [!TIP]
> **Best Practice**
>
> Add the `cObject` Part at the very end of the Page.

## Configuration {#configuration}

### Template and Views {#template-and-views}

The Template, Partials and Layout Root Paths. You can override them or add own Paths, if You need.

```typoscript
templateRootPaths.10 = EXT:your-theme/Resources/Private/Templates/
partialRootPaths.10 = EXT:your-theme/Resources/Private/Partials/
layoutRootPaths.10 = EXT:your-theme/Resources/Private/Layouts/
```

### Page Settings {#page-settings}

#### page.includeJS.supi {#page-includejs-supi}

-   **Property**

    page.includeJS.supi

-   **Description**

    Includes the main JavaScript file into Your TYPO3 instance.

#### page.includeCSS.supi {#page-includecss-supi}

-   **Property**

    page.includeCSS.supi

-   **Description**

    Includes the main CSS file into Your TYPO3 instance.

> [!TIP]
> **Best Practice**
>
> Remove the Default CSS/JS implementations and integrate it into Your frontend workflow/ pipeline. All SCSS/TypeScript Sources are available in the EXT:supi folder.

#### SUPI_JS object {#supi-js-object}

Services like Matomo or Google Analytics might require to insert an inline script
into the page's source code. To prevent the Content Security Policy from blocking
these inline scripts, this extension adds hashes for each script on the fly.

Have a look into the TypoScript setup in `setup.typoscript`, where the key
`page.headerData.31337` defines two `SUPI_JS` objects, which can be overwritten
in your own TypoScript.

### Settings {#settings}

| Name | Default Value | Type |
| --- | --- | --- |
| [enabled](https://docs.typo3.org/permalink/supseven/supi:enabled@8.1) | 1 | bool |
| [hideOverlayOnButtonCe](https://docs.typo3.org/permalink/supseven/supi:hideoverlayonbuttonce@8.1) | 1 | bool |
| [hideAutoEssential](https://docs.typo3.org/permalink/supseven/supi:hideautoessential@8.1) | 0 | bool |
| [detailed](https://docs.typo3.org/permalink/supseven/supi:detailed@8.1) | 1 | bool |
| [perItemDetail](https://docs.typo3.org/permalink/supseven/supi:peritemdetail@8.1) | 1 | bool |
| [perItemSelect](https://docs.typo3.org/permalink/supseven/supi:peritemselect@8.1) | 1 | bool |
| [showBigSwitch](https://docs.typo3.org/permalink/supseven/supi:showbigswitch@8.1) | 0 | bool |
| [theme](https://docs.typo3.org/permalink/supseven/supi:theme@8.1) | default | string |
| [position](https://docs.typo3.org/permalink/supseven/supi:position@8.1) | 1 | int |
| [enableYoutubeOnce](https://docs.typo3.org/permalink/supseven/supi:enableyoutubeonce@8.1) | 0 | bool |
| [enableSimpleMapsOnce](https://docs.typo3.org/permalink/supseven/supi:enablesimplemapsonce@8.1) | 0 | bool |
| [essentialIncludesYoutube](https://docs.typo3.org/permalink/supseven/supi:essentialincludesyoutube@8.1) | 0 | bool |
| [essentialIncludesMaps](https://docs.typo3.org/permalink/supseven/supi:essentialincludesmaps@8.1) | 0 | bool |
| [debugClass](https://docs.typo3.org/permalink/supseven/supi:debugclass@8.1) | be_user_login | string |
| [cookieDomain](https://docs.typo3.org/permalink/supseven/supi:cookiedomain@8.1) |  | string |
| [cookieTTL.all](https://docs.typo3.org/permalink/supseven/supi:cookiettl-all@8.1) | 30 | int |
| [cookieTTL.reduced](https://docs.typo3.org/permalink/supseven/supi:cookiettl-reduced@8.1) | 7 | int |
| [gdpr.uid](https://docs.typo3.org/permalink/supseven/supi:gdpr-uid@8.1) | 1 | int |
| [elements](https://docs.typo3.org/permalink/supseven/supi:elements@8.1) |  | array |
| [button](https://docs.typo3.org/permalink/supseven/supi:button@8.1) |  | array |
| [spotify](https://docs.typo3.org/permalink/supseven/supi:spotify@8.1) |  | array |

#### enabled {#enabled}

-   **Property**

    enabled

-   **Data type**

    bool

-   **Default**

    1

-   **Description**

    Enable or Disable the Banner. This could be useful in some cases

#### hideOverlayOnButtonCe {#hideoverlayonbuttonce}

-   **Property**

    hideOverlayOnButtonCe

-   **Data type**

    bool

-   **Default**

    1

-   **Description**

    Hides the overlay if the cookie button CE is visible (mostly used on the dataprotection page)

#### hideAutoEssential {#hideautoessential}

-   **Property**

    hideAutoEssential

-   **Data type**

    bool

-   **Default**

    0

-   **Description**

    Hide the "Functional Cookies only" button

-   **Images**

    ![](../Images/HideAutoEssentialBtnTrue.png)

    ![](../Images/HideAutoEssentialBtnFalse.png)

-   **Notes**

    **@TODO: we might remove this due to DARK PATTERN behaviour**

#### detailed {#detailed}

-   **Property**

    detailed

-   **Data type**

    bool

-   **Default**

    1

-   **Description**

    Enables or disables detailed view

-   **Notes**

    **@TODO: we need to discuss this. we might remove this or at least do not show the individual btn config**

#### perItemDetail {#peritemdetail}

-   **Property**

    perItemDetail

-   **Data type**

    bool

-   **Default**

    1

-   **Description**

    Enables or disables detailed view for each item

-   **Notes**

    **@TODO: we need to discuss this. we might remove this due to GDPR regulations**

#### perItemSelect {#peritemselect}

-   **Property**

    perItemSelect

-   **Data type**

    bool

-   **Default**

    1

-   **Description**

    Enable select per item

#### showBigSwitch {#showbigswitch}

-   **Property**

    showBigSwitch

-   **Data type**

    bool

-   **Default**

    0

-   **Description**

    Enable big switch-to-detail in overview if detail is active. works only with [hideAutoEssential](https://docs.typo3.org/permalink/supseven/supi:hideautoessential@8.1)

-   **Notes**

    **@TODO: we need to discuss this. we might remove this due to GDPR regulations - DARK PATTERN**

#### theme {#theme}

-   **Property**

    theme

-   **Data type**

    string

-   **Default**

    default

-   **Description**

    Theming Name

-   **Notes**

    **@TODO: IMHO we can remove this and build a simple but useful theme - most websites are styling all over but the main theme is always the same**

#### position {#position}

-   **Property**

    position

-   **Data type**

    int

-   **Default**

    1

-   **Description**

    Position of the Cookie Banner (0   Bottom-Left, 1   Center-Center)

-   **Notes**

    **@TODO: IMHO we can remove this and build a simple but useful theme - most websites are styling all over but the main theme is always the same**

#### enableYoutubeOnce {#enableyoutubeonce}

-   **Property**

    enableYoutubeOnce

-   **Data type**

    bool

-   **Default**

    0

-   **Description**

    Set to 1 to enable the load-once button for youtube elements

-   **Images**

    ![](../Images/EnableYoutubeOnceFalse.png)

    ![](../Images/EnableYoutubeOnceTrue.png)

-   **Notes**

    **@TODO: refactor youtube element**

#### enableSimpleMapsOnce {#enablesimplemapsonce}

-   **Property**

    enableSimpleMapsOnce

-   **Data type**

    bool

-   **Default**

    0

-   **Description**

    Set to 1 to enable the load-once button for Google Maps elements

-   **Images**

    ![](../Images/EnableSimpleMapsOnceFalse.png)

    ![](../Images/EnableSimpleMapsOnceTrue.png)

-   **Notes**

    **@TODO: add translations and propper style**

#### essentialIncludesYoutube {#essentialincludesyoutube}

-   **Property**

    essentialIncludesYoutube

-   **Data type**

    bool

-   **Default**

    0

-   **Description**

    Youtube is enabled by essential

-   **Notes**

    **@TODO: we need to discuss this. due to GDPR regulations this might not be OK!**

#### essentialIncludesMaps {#essentialincludesmaps}

-   **Property**

    essentialIncludesMaps

-   **Data type**

    bool

-   **Default**

    0

-   **Description**

    Google Maps is enabled by essential

-   **Notes**

    **@TODO: we need to discuss this. due to GDPR regulations this might not be OK!**

#### debugClass {#debugclass}

-   **Property**

    debugClass

-   **Data type**

    string

Default

-   **Description**

    A CSS-Classname on the HTML-Body, that is needed, to output console.log() debug messages. Usually you have to set a addictional body-class via [TypoScript reference: page.bodyTagCObject](https://docs.typo3.org/m/typo3/reference-typoscript/14.3/en-us/TopLevelObjects/Page/Index.html#setup-page-bodytagcobject).

#### cookieDomain {#cookiedomain}

-   **Property**

    cookieDomain

-   **Data type**

    string

Default

-   **Description**

    Set a Domain Name for the Cookie Settings

#### cookieTTL.all {#cookiettl-all}

-   **Property**

    cookieTTL.all

-   **Data type**

    int

-   **Default**

    30

-   **Description**

    cookie time to live (in days) for allow all cookies

#### cookieTTL.reduced {#cookiettl-reduced}

-   **Property**

    cookieTTL.reduced

-   **Data type**

    int

-   **Default**

    7

-   **Description**

    cookie time to live (in days) for selected/ essential cookies

#### gdpr.uid {#gdpr-uid}

-   **Property**

    gdpr.uid

-   **Data type**

    int

-   **Default**

    1

-   **Description**

    page uid for the gdpr page

-   **Image**

    ![](../Images/GdprUid.png)

#### elements {#elements}

-   **Property**

    elements

-   **Data type**

    array

Default

-   **Description**

    The configuration of all elements visible and usable in the EXT:supi banner

-   **Example**

    see [elements](https://docs.typo3.org/permalink/supseven/supi:elements@8.1) for a detailed description
    // @TODO: how to add a subpage in rst in the pagetree?

#### button {#button}

-   **Property**

    button

-   **Data type**

    array

-   **Default**

    LLL Strings

-   **Description**

    Text/ Translations of all Buttons visible in the Banner. Use `LLL` Strings to output translated strings

-   **Example**

    ```typoscript
    button {
       allow {
           label = LLL:EXT:supi/Resources/Private/Language/locallang.xlf:banner.button.allow.label
           text = LLL:EXT:supi/Resources/Private/Language/locallang.xlf:banner.button.allow.text
       }
    }
    ```

#### spotify {#spotify}

-   **Property**

    spotify

-   **Data type**

    array

-   **Default**

    Spotify Player attributes

-   **Description**

    Configure the Spotify integration like `url`, `player attributes` and more

-   **Example**

    ```typoscript
    spotify {
        url = https://open.spotify.com/embed/playlist/{id}
        playerAttr {
            width = 100%
            height = 380
            allowfullscreen = allowfullscreen
            allow = autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture
            style = border-radius:12px
        }
        enableDescription = LLL:EXT:supi/Resources/Private/Language/locallang.xlf:ce.spotify.enable.description
        enableToggle = LLL:EXT:supi/Resources/Private/Language/locallang.xlf:ce.spotify.enable.toggle
    }
    ```
