TYPO3 Logo
Bootstrap Package
Options
View source How to edit Full documentation (single file)

Bootstrap Package

  • Introduction
  • Installation
  • Quick Start
  • Configuration
    • Extension Configuration
    • Image Rendering
    • Settings
      • Full Package
      • Backend Layouts
      • Bootstrap 5
      • Content Elements
      • Cookie Consent
      • Google Font
      • Google Tag Manager
  • Contribution
  • Sitemap
  • Index
  1. Bootstrap Package
  2. Configuration
  3. Settings
  4. Cookie Consent

Cookie Consent 

The Cookie Consent set (bootstrap-package/cookie-consent) provides a configurable cookie consent banner. For more information visit https://cookieconsent.insites.com/

Name
BootstrapPackage
BootstrapPackage.cookie-consent
page.theme.cookieconsent.enable
page.theme.cookieconsent.layout
page.theme.cookieconsent.position
page.theme.cookieconsent.static
page.theme.cookieconsent.content.href
page.theme.cookieconsent.revokable
page.theme.cookieconsent.location
page.theme.cookieconsent.law.countryCode
page.theme.cookieconsent.law.regionalLaw
page.theme.cookieconsent.type
page.theme.cookieconsent.cookie.expiryDays

BootstrapPackage

BootstrapPackage
Label
Bootstrap Package

BootstrapPackage.cookie-consent

BootstrapPackage.cookie-consent
Label
Cookie Consent

page.theme.cookieconsent.enable

page.theme.cookieconsent.enable
Type
bool
Default
true
Label
Enable Cookie Consent
Category
Bootstrap Package > Cookie Consent

For more information about this solution please head over to https://cookieconsent.insites.com/

page.theme.cookieconsent.layout

page.theme.cookieconsent.layout
Type
string
Default
"basic-header"
Label
Layout
Enum
{ "basic": "Basic", "basic-close": "Basic Close", "basic-header": "Basic Header" }
Category
Bootstrap Package > Cookie Consent

page.theme.cookieconsent.position

page.theme.cookieconsent.position
Type
string
Default
"bottom"
Label
Position
Enum
{ "top": "Banner Top", "bottom": "Banner Bottom", "top-left": "Floating Top Left", "top-right": "Floating Top Right", "bottom-left": "Floating Bottom Left", "bottom-right": "Floating Bottom Right" }
Category
Bootstrap Package > Cookie Consent

If you specify "top" or "bottom", we assume that a full width "banner" is required. If however you specify a horizontal direction, we assume that a corner popup is required (which we call "floating").

page.theme.cookieconsent.static

page.theme.cookieconsent.static
Type
bool
Default
false
Label
Static Position
Category
Bootstrap Package > Cookie Consent

The popup uses position fixed to stay in one place on the screen despite any scroll bars. This option makes the popup position static so it displays at the top of the page. A height animation has also been added by default so the popup doesn’t make the page jump, but gradually grows and fades in.

page.theme.cookieconsent.content.href

page.theme.cookieconsent.content.href
Type
string
Label
Privacy Police
Category
Bootstrap Package > Cookie Consent

Insert a full Link to the privacy police page or a page uid from your current TYPO3 System.

page.theme.cookieconsent.revokable

page.theme.cookieconsent.revokable
Type
bool
Default
false
Label
Revokable
Category
Bootstrap Package > Cookie Consent

If set true, revoke button is displayed every time. If false, revoke button is only displayed for advanced compliance options (opt-in and opt-out) and in countries that require revokable consent. The latter can be disabled by regionalLaw.

page.theme.cookieconsent.location

page.theme.cookieconsent.location
Type
bool
Default
false
Label
Location Detection
Category
Bootstrap Package > Cookie Consent

Location is simply a tool for getting the two letter country code that the user is in.

page.theme.cookieconsent.law.countryCode

page.theme.cookieconsent.law.countryCode
Type
string
Label
Country Code
Category
Bootstrap Package > Cookie Consent

Rather than getting the country code from the location services, you can hard code a particular country into the tool.

page.theme.cookieconsent.law.regionalLaw

page.theme.cookieconsent.law.regionalLaw
Type
bool
Default
true
Label
Regional Law
Category
Bootstrap Package > Cookie Consent

If false, then we only enable the popup if the country has the cookie law. We ignore all other country specific rules.

page.theme.cookieconsent.type

page.theme.cookieconsent.type
Type
string
Default
"info"
Label
Compliance
Enum
{ "info": "Informal", "opt-in": "Opt-In", "opt-out": "Opt-Out" }
Category
Bootstrap Package > Cookie Consent

The informal confirmation does not require any further adjustments to your JavaScript. The Opt-In and Opt-Out options are not out-of-the-box solutions, manual adjustments to your software are necessary. For your support we provide the events bk2k.cookie.enable, bk2k.cookie.disable and bk2k.cookie.revoke. These events allow you to let your application react to them and to set or remove cookies accordingly. The cookie that contains the current status is called cookieconsent_status.

page.theme.cookieconsent.cookie.expiryDays

page.theme.cookieconsent.cookie.expiryDays
Type
number
Default
365
Label
Expiry Days
Category
Bootstrap Package > Cookie Consent

The cookies expire date, specified in days (specify -1 for no expiry)

  • Previous
  • Next
Reference to the headline

Copy and freely share the link

This link target has no permanent anchor assigned.The link below can be used, but is prone to change if the page gets moved.

Copy this link into your TYPO3 manual.

Last rendered: Dec 02, 2025 14:57

  • Legal Notice
  • Privacy Policy