PhoenixKit.Modules.Publishing.DBStorage.Mapper
(PhoenixKitPublishing v0.1.6)
Copy Markdown
View Source
Mapper: converts DB records to the map format expected by Publishing's web layer (LiveViews, templates, controllers).
Data Sources (V2)
- Post — routing only: slug, mode, post_date, post_time, active_version_uuid
- Version — source of truth: status, published_at, featured_image, tags, seo, description
- Content — per-language: title, body, url_slug (for routing)
Summary
Functions
Converts a post to a listing-format map (no content body, just metadata). Used for listing pages where full content isn't needed.
Converts a full post read (post + version + content + all contents + all versions) into the map format expected by the web layer.
Functions
Converts a post to a listing-format map (no content body, just metadata). Used for listing pages where full content isn't needed.
Converts a full post read (post + version + content + all contents + all versions) into the map format expected by the web layer.