定制 moinframe/kirby-loop 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

moinframe/kirby-loop

最新稳定版本:1.1.1

Composer 安装命令:

composer require moinframe/kirby-loop

包简介

Interactive feedback tool for Kirby CMS websites that allows users to add contextual comments directly on page elements

README 文档

README

Kirby Loop

Kirby Loop

Stay in the loop. A visual feedback plugin for Kirby CMS: click anywhere on a page to leave a comment, reply in threads, and resolve discussions, right where the content lives. Made for client reviews and team feedback.

Features

  • Click-to-comment: switch to comment mode and click any element to attach feedback to it
  • Threaded discussions: reply to comments and mark them as resolved
  • Panel integration: a global Feedback area in the Kirby Panel plus a per-page comments section for page blueprints
  • Multi-language: works with Kirby's multi-language sites, UI language auto-detected
  • Public or users only: restrict commenting to authenticated users or open it up to the public
  • Theming: light/dark themes included, custom themes possible
  • Self-contained: everything is stored in a local SQLite database, no external services

Quick Start

composer require moinframe/kirby-loop

The feedback widget is automatically injected on all pages for authenticated users.

Configuration

All options go into site/config/config.php:

return [
    // Enable/disable loop (default: true)
    'moinframe.loop.enabled' => true,

    // Or use a callback for conditional enabling
    'moinframe.loop.enabled' => function($page) {
        return in_array($page->template()->name(), ['article', 'blog']);
    },

    // Disable auto-injection (default: true)
    'moinframe.loop.auto-inject' => false,

    // Set header position: 'top' or 'bottom' (default: 'top')
    'moinframe.loop.position' => 'bottom',

    // Allow guest comments (default: false - requires auth)
    'moinframe.loop.public' => true,

    // Force UI language (default: null - auto-detect)
    'moinframe.loop.language' => 'de',

    // Set theme: 'default', 'dark', or custom theme name
    'moinframe.loop.theme' => 'dark',
];

Panel View

Panel UI of Loop

Since 1.1.0 comments also show up in the Kirby Panel. A global Feedback area in the Panel menu lists all comments across the site, grouped by page. There's also a loop-comments blueprint section to show a page's comments right where editors work:

sections:
  feedback:
    type: loop-comments

See the Panel docs for permissions and how to hide the area for certain roles.

Documentation

Requirements

  • Kirby CMS 4.0+
  • PHP 8.3+
  • SQLite support

[!WARNING] Caching Pages with the snippet automatically have Kirby's page cache disabled. This is necessary for CSRF token validation and user authentication checks.

Support

Found a bug? Report it on GitHub Issues.

License

MIT License - see LICENSE.md

统计信息

  • 总下载量: 334
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 32
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 32
  • Watchers: 2
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固