search

Cookie Consent Plugin

A lightweight cookie consent plugin for Typemill that integrates the popular CookieConsent library by orestbida. It displays a customizable cookie banner and a preferences modal so visitors can manage their cookie choices.

Developed by Giuseppe Chiesa / g-c.dev.

Source code: github.com/gchiesa/typemill-cookieconsent

Requirements

Installation

  1. Download the plugin and upload the cookieconsent folder to the /plugins directory of your Typemill installation.
  2. Log in to the Typemill admin panel.
  3. Go to Settings → Plugins and activate the Cookie Consent plugin.
  4. Open the plugin settings and fill in the cookie category descriptions (see below).

Configuration

In the plugin settings you can define the descriptions shown in the consent modal for each cookie category:

Setting Description
message_base Description for necessary cookies (always enabled). Explain why these are required for core functionality such as navigation and security.
message_analytics Description for analytics cookies. Explain how you collect usage data to improve the site.
message_functionality Optional description for functionality cookies. Use this for features that enhance the experience (e.g., remembering preferences).
message_marketing Optional description for marketing cookies. Use this for personalized advertising or tracking.
legal_and_privacy_url URL of your legal/privacy page. Displayed in the modal footer and the More information section.

If a message field is left empty, the corresponding cookie category is not shown in the preferences modal.

Features

CDN Resources

The plugin loads the following external assets:

Make sure your Content Security Policy (CSP) allows these domains. The plugin adds them automatically when the Typemill CSP event is active.

License

MIT

Versions

Version 1.1.0

Version 1.0.1