Skip to content

PhoenixKit 1.7.18: A cookie consent banner, and versioned blog posts

PhoenixKit 1.7.18 adds a cookie consent banner to the Legal module and starts keeping versions of blog posts.

In the Legal settings, Cookie Consent Widget has the Enable Cookie Banner switch. When it is on, visitors get a first-visit banner where the framework needs opt-in, a floating cookie icon in a corner of your choice, and a preferences dialog with a switch per cookie category. Google Consent Mode v2 passes the choice to Google Analytics and Ads. The choice is shared between open tabs, and the widget can also load itself on pages outside the PhoenixKit layout through /api/consent-config.

Blog posts can now be kept in versions, each in its own v1, v2 folder. mix phoenix_kit.migrate_blog_versions moves existing posts into v1; --dry-run shows the changes first. Blog listings are cached, so they load without reading every post file.

Upgrading

To use versions for existing blog posts, run mix phoenix_kit.migrate_blog_versions.

Full release notes: PhoenixKit 1.7.18

1.7.18 · 3 January 2026

  • Blog Versioning, Caching System, and Complete Programmatic API
  • Add Cookie Consent Widget (Legal Module Phase 2)
  • Add Legal module improvements and cookie consent enhancements

PhoenixKit 1.7.18. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.