MapbenderLogo
4.0
  • English
    • Installation
    • Mapbender Quickstart: First steps with Mapbender
    • Elements
      • Base elements
      • Editing
      • Export / Print
      • Search
      • Share elements
      • Other
        • About Dialog
        • Application Switcher
        • Button
        • Cookie Banner
        • Link
        • Coordinates Utility
        • Copyright
        • Dimensions handler
        • GPS Position
        • HTML
        • POI
        • Query Builder
        • WMS Loader
    • Backend
    • Customization / Tips and tricks
    • FAQ - Frequently Asked Questions
    • Architecture
    • Development
    • Version history
    • QGIS2Mapbender Plugin
  • Deutsch
Mapbender
  • Welcome to the Mapbender documentation
  • Elements
  • Other
  • Cookie Banner
  • Edit on GitHub

Cookie Banner¶

Applications support displaying a cookie banner which is customized via the Mapbender configuration file parameters.yaml. We use the code from Cookie Consent without making an additional call to the internet.

The banner is displayed in any application on the first run.

../../../_images/cookiebanner1.png

After this banner is dismissed it doesn’t appear again until you have deleted the cookie in your web browser. Mapbender depends on cookies and stores its PHP-session there.

Configuration¶

Configuration takes place in the parameters.yaml file and accounts for the whole Mapbender instance. Please add the parameter mapbender.cookieconsent with the value true or false. If the parameter is missing or the value is set to false, the banner will not be displayed in your applications.

Example:

#Mapbender Cookie Consent Message
mapbender.cookieconsent: true

Tip

After changing these parameters you have to clean the contents of the cache-directory (var/cache/\*).

Previous Next

© Copyright 2024, The Mapbender Team.

Built with Sphinx using a theme provided by Read the Docs.