Skip to content

Publishing 0.1.1: The PhoenixKit content system as its own package

Publishing 0.1.1 is the first Hex release of the PhoenixKit publishing module as a separate package. It gives a Phoenix site a database-backed place for blogs, news, documentation and FAQ pages, with posts in several languages, versions and shared editing.

What a site gets

Content lives in groups, each shown in the admin under Publishing. When a group is created you choose how its addresses work: by date and time, for a blog or news, or by slug, for documentation or an FAQ. The choice cannot be changed later.

  • Languages. Each post has its own content per language, and public pages have a language switcher. A missing translation or post leads to the nearest match, such as the post in another language or the group’s listing.
  • Versions. Each post keeps its own version history, and you choose which version is published or archived.
  • Editing together. When two people open the same post, the first one edits and the others watch until it is free.
  • AI translation. Posts can be translated in the background through the AI module’s endpoints and prompts.
  • Content. Posts are written in Markdown and can include components such as an image, hero, call to action, video or headline, and an Entities form.
  • Speed. Listings and rendered posts are cached, and the caches can be switched off in the settings.

Installing

Add phoenix_kit_publishing to your dependencies and run mix phoenix_kit.install or mix phoenix_kit.update: the tables come from PhoenixKit core’s migrations. Turn the module on under Modules. It needs the AI module, phoenix_kit_ai.

The release also stops the module from quietly using en when it cannot read the site’s primary language. Calling set_translation_status/5, which no longer does anything, now logs a warning.

Full release notes: Publishing 0.1.1

0.1.1 · 26 March 2026

Fixed

  • Remove Code.ensure_loaded? guards on LanguageHelpers in db_storage.ex and mapper.ex — call directly via alias instead of silently falling back to "en"
  • Add deprecation warning to set_translation_status/5 no-op (was returning :ok silently)
  • Remove duplicate site_default_language/0 private functions from db_storage.ex and mapper.ex — use LanguageHelpers.get_primary_language() directly
  • Fix unused all_posts variable warnings in listing.ex (leftover from primary language removal)
  • Remove unused Helpers alias in collaborative.ex
  • Remove unused @content_statuses and LanguageHelpers alias in translation_manager.ex
  • Fix alias ordering (credo) in editor.ex, translation.ex, translate_post_worker.ex, renderer.ex
  • Reduce nesting depth in do_publish_version, translate_single_language, skip_already_translated, render_versioned_post, build_post_url, toggle_version_access, translate_content, translate_now
  • Alias nested module in test_helper.exs

Publishing 0.1.1. Install or update: {:phoenix_kit_publishing, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.