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#

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#

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