PhoenixKitWeb.Live.Modules.Posts.Settings (phoenix_kit v1.7.38)

Copy Markdown View Source

LiveView for posts module configuration and settings management.

This module provides a comprehensive interface for managing all aspects of the PhoenixKit posts system, including:

  • Content Limits: Configure max media, title length, subtitle, content, mentions, tags
  • Module Configuration: Enable/disable module, set pagination, default status
  • Feature Toggles: Control comments, likes, scheduling, groups, reposts, SEO
  • Moderation: Configure post approval and comment moderation

Route

This LiveView is mounted at {prefix}/admin/posts/settings and requires appropriate admin permissions.

Note: {prefix} is your configured PhoenixKit URL prefix (default: /phoenix_kit).

Features

  • Real-time settings updates with immediate effect
  • Input validation with user-friendly error messages
  • Preview of limits and examples
  • Organized by category for easy navigation

Permissions

Access is restricted to users with admin or owner roles in PhoenixKit.

Summary

Functions

handle_event(binary, params, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

mount(params, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.