PhoenixKit.Modules.Publishing.Web.Controller.Listing
(PhoenixKitPublishing v0.1.5)
Copy Markdown
View Source
Group listing functionality for the publishing controller.
Handles rendering post listings with:
- Language filtering and fallback
- Pagination
- Translation link building for listings
Summary
Functions
Gets the default group listing path for a language.
Fetches group configuration by slug.
Filter posts to only include those that have matching language content. Handles both exact matches and base code matches (e.g., "en" matches "en-US"). Translation visibility is based on existence only — status comes from the post level.
Strict version - only matches exact language, no fallback to base code.
Filters posts to only include published ones. Excludes timestamp-mode posts with a future post_date.
Find a matching language in available languages. Handles exact matches and base code matching.
Get the actual language that the fallback matched. Used to redirect to the correct URL when requested language has no content.
Gets the page number from params.
Gets the posts per page setting.
Paginates a list of posts.
Renders the group index page with resolved posts.
Renders a group listing page.
Resolves posts for the requested language, handling exact match vs fallback.
Functions
Gets the default group listing path for a language.
Fetches group configuration by slug.
Filter posts to only include those that have matching language content. Handles both exact matches and base code matches (e.g., "en" matches "en-US"). Translation visibility is based on existence only — status comes from the post level.
Strict version - only matches exact language, no fallback to base code.
Filters posts to only include published ones. Excludes timestamp-mode posts with a future post_date.
Find a matching language in available languages. Handles exact matches and base code matching.
Get the actual language that the fallback matched. Used to redirect to the correct URL when requested language has no content.
Gets the page number from params.
Gets the posts per page setting.
Paginates a list of posts.
Renders the group index page with resolved posts.
Renders a group listing page.
Resolves posts for the requested language, handling exact match vs fallback.