Publishing 0.18.0: Correct sitemap URLs, better pagination and ten languages for the Phoenix CMS
Publishing 0.18.0 finishes the open items from the CMS audit: your sitemap no longer advertises draft URLs, blog listings get proper page navigation, and the module’s admin is translated into every language PhoenixKit ships.
A sitemap that matches your live posts
When a published post had a draft with a renamed URL, the sitemap could advertise the draft’s address, which returned a 404, and drop the live one. Listing posts for a language now takes each post’s URL fields from its live version, so search engines see the URLs readers can actually open. A slug generated from a title is now checked like a typed one, so a title that turns into a language code or a reserved route word gets a suffix instead of a broken address.
Better listings and a faster admin
Public blog listings now show a pager with the first, last and nearby pages plus previous and next, instead of one button for every page. The admin dashboard reads totals instead of loading every post body on each refresh, and a post’s page in the admin shows its view count. A replayed session cookie no longer counts a view on every request, and public search no longer matches text hidden in HTML comments.
Ten languages
New translations for Spanish, Polish, Ukrainian and Chinese mean every language PhoenixKit core ships is covered, and the Leaf editor’s own buttons are now translated in all ten.
Upgrading
No new PhoenixKit core is needed. Creating a group that is refused now says why, for example :invalid_slug, instead of always reporting :already_exists. A few internal functions that nothing called were removed; the Publishing API itself is unchanged.
Full release notes: Publishing 0.18.0
0.18.0 · 8 November 2026
The open items of the 2026-11-08 audit (dev_docs/2026-11-08-full-module-audit.md, “Open items, second pass”). Requires no new core: everything here is in phoenix_kit 2.65.0, the floor.
Changed
list_posts/2with a language answers a live post’s URL fields from its live version (available_languages,language_slugs,language_previous_slugs,url_slug). Core’s Sitemap passes one, so it no longer advertises a draft’s renamed URL (a 404) or drops the live one. Without a language, as the admin calls it, nothing changes.- A post slug derived from the title is validated like a typed one: a title that slugifies to a language code or a reserved route word gets a suffix.
- A refused group create says why (
:invalid_name,:invalid_slug, …) instead of always:already_exists, and the activity row records the name’s length instead of the submitted text. - New translations: es, pl, uk and zh, so every locale core ships is covered, and a
leafdomain that translates Leaf’s editor strings in all ten languages. - Self-healing writes log activity rows (
mode: "auto"):publishing.content.url_slug_resolved,publishing.post.pointer_cleared,publishing.version.orphan_demoted,publishing.version.duplicate_archived. - Every mutation passes its options to its activity rows, and a failed category reorder is logged against the group like a successful one.
- Machine API:
set_translation,create_versionandschedule_postvalidation errors carry a reason (primary_language,exclusive_fields,invalid_datetime); upper-case category ids are accepted. - Admin UI: core’s
status_badgeandform_actions; duplicate headings and breadcrumbs removed; version dates in the site’s format and clock; accessible names on the remaining controls; PostShow shows the post’s view count. - Public listings: the pager shows the first, last and nearby pages with previous/next, instead of one button per page.
- Removed internal functions nothing called (
DBStorage.delete_post/1,list_languages/1,list_posts_slug_mode/2,update_content_status_except/3,upsert_group/1,Categories.categories_for_posts/1,categories_of_post/1,MediaFolders.post_folder_prefix/0,Web.Editor.Preview). ThePublishingfacade is unchanged.
Fixed
- A date-only URL with several embargoed posts redirected to, and so revealed, the first one’s time.
- A replayed session cookie counted a view on every request; the session marker now carries an id that is deduplicated for the day.
- Public search matched text inside HTML comments, which the page never shows.
- The duplicate-published repair could take a published post offline over two reads.
- The view-dedup cap counted the previous day’s visitors, so a busy day switched deduplication off for most of the next.
- A category edit could be rolled back by a failed audit write, and
replace_post_categoriescould overwrite a concurrent save of the version. - A group rename left its render-cache setting behind (a disabled cache came back on), and open editors and listings on the old slug (every autosave answered “Not found”).
- Back and a post-mention click left the editor without collecting Leaf’s last keystrokes.
- An unpublished post’s language fallback cost about two queries per version per language.
- The admin dashboard loaded every post body of every group on each refresh; it reads aggregates now.
if_revisionnever matched on a post whose primary content still had a legacy base-language code.- The missing-timestamp repair stamped UTC instead of the site clock.
Publishing 0.18.0. Install or update: {:phoenix_kit_publishing, "~> 0.18"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.