---
title: "TypoScript constants"
version: "main"
permalink: "https://docs.typo3.org/permalink/dmind/cookieman:typoscript-constants@main"
source: "Configuration/Reference/TypoScriptConstants/Index.rst"
rendered: "2026-11-25T17:56:16+00:00"
---

# TypoScript constants {#typoscript-constants}

Adjust the TypoScript constants (again, either in a sys_template record or in a file in your site package).

All constants are prepended with `plugin.tx_cookieman.settings`.

## resourcesBasePath {#resourcesbasepath}

-   **resourcesBasePath**

    `|` *Data type:*
    `|` *Default:* EXT:cookieman/Resources
    `|` *Example:* EXT:mysitepackage/Resources
    `|`

    Path to directory that holds the themes. Default enables the shipped demo themes. See [Custom themes](https://docs.typo3.org/permalink/dmind/cookieman:customization@main) how to create a new theme.

## theme {#theme}

-   **theme**

    `|` *Data type:*
    `|` *Default:* bootstrap4-modal
    `|` *Example:* my-theme
    `|`

    Name of the theme. It is used to extend the [resourcesBasePath](https://docs.typo3.org/permalink/dmind/cookieman:resourcesbasepath@main) to create the full path to templates and assets.

    The shipped default themes are these: [Themes directory on Github](https://github.com/dmind-gmbh/extension-cookieman/tree/master/Resources/Private/Themes)

    You can check them out on our  page.

    Of course you can use your own custom theme (see [Custom themes](https://docs.typo3.org/permalink/dmind/cookieman:customization@main)).

## links.dataProtectionDeclarationPid {#links-dataprotectiondeclarationpid}

-   **links.dataProtectionDeclarationPid**

    `|` *Data type:*
    `|` *Example:* 123
    `|`

    page UID of data privacy statement page - the *Cookieman* modal will not be automatically opened on this page
    (see [When is the popup shown to users?](https://docs.typo3.org/permalink/dmind/cookieman:when-is-it-shown@main)).

## links.dataProtectionDeclarationAnchor {#links-dataprotectiondeclarationanchor}

-   **links.dataProtectionDeclarationAnchor**

    `|` *Data type:*
    `|` *Example:* c456
    `|`

    You can set an (optional) anchor (TYPO3-lingua "section") on the data privacy statement page.

## links.imprintPid {#links-imprintpid}

-   **links.imprintPid**

    `|` *Data type:*
    `|` *Example:* 123
    `|`

    page UID of imprint page - the *cookieman* modal will not be automatically opened on this page
    (see [When is the popup shown to users?](https://docs.typo3.org/permalink/dmind/cookieman:when-is-it-shown@main)).

## links.imprintAnchor {#links-imprintanchor}

-   **links.imprintAnchor**

    `|` *Data type:*
    `|` *Example:* c456
    `|`

    You can set an (optional) anchor (TYPO3-lingua "section") on the imprint page.

## cookie.cookieLifetimeDays {#cookie-cookielifetimedays}

-   **cookie.cookieLifetimeDays**

    `|` *Data type:*
    `|` *Default:* 365
    `|` *Example:* 90
    `|`

    Number of days after which the consent cookie expires.

## cookie.domain {#cookie-domain}

-   **cookie.domain**

    `|` *Data type:*
    `|` *Default:* the domain of the TYPO3 site
    `|` *Example:* .example.com
    `|`

    Domain of the consent cookie, without the protocol. Start it with a dot to share the
    cookie between subdomains (see [Configuration of the cookie used by the extension itself](https://docs.typo3.org/permalink/dmind/cookieman:extension-cookie-settings@main)).

## cookie.sameSite {#cookie-samesite}

-   **cookie.sameSite**

    `|` *Data type:*
    `|` *Default:* Strict
    `|` *Example:* Lax
    `|`

    [SameSite attribute](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#samesitesamesite-value)
    of the consent cookie. Use `Strict`, `Lax` or `None`.

    Before cookieman 5.0.0 the default was `Lax`.

## cookie.secure {#cookie-secure}

-   **cookie.secure**

    `|` *Data type:*
    `|` *Default:* empty (= on)
    `|` *Example:* 0
    `|`

    Makes the consent cookie
    [secure](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#secure).
    Cookieman sets the attribute only when the page is served via https, so it is safe
    to leave this on.

    Set it to `0` only if you have http/https subdomains that must be covered by the cookie
    (see [Configuration of the cookie used by the extension itself](https://docs.typo3.org/permalink/dmind/cookieman:extension-cookie-settings@main)).

## consentConfigurationVersion {#consentconfigurationversion}

-   **consentConfigurationVersion**

    `|` *Data type:*
    `|` *Default:* 1
    `|` *Example:* 2
    `|`

    Version of your cookie configuration. Cookieman writes it into the consent cookie.
    You can use any value, for example a date or the number of your release.

    Change it every time you change your cookie configuration. Cookieman then shows the
    consent popup again to all users whose cookie holds a different version. Until such a
    user saves again, the old consent does not count and cookieman injects no tracking
    objects (see [Show the consent popup again after a configuration change](https://docs.typo3.org/permalink/dmind/cookieman:show-the-popup-again@main)).

    Consent that cookieman before 5.0.0 saved holds no version. Such a cookie gets the
    current version without a change for the user ("silent upgrade"). Thus the upgrade to
    5.0.0 does not ask anybody again.

## minify {#minify}

-   **minify**

    `|` *Data type:* [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/14.3/en-us/Syntax/StringFormats/Index.html#data-type-boolean)
    `|` *Default:* 1
    `|`

    Cookieman comes with both minified and regular stylesheets and JavaScripts for the demo themes.

    It set to `1`, the minified versions of the .css and .js files are used.
    You can set it to `0` for debugging purposes.
