PHPackages                             medienbaecker/kirby-modules - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. medienbaecker/kirby-modules

ActiveKirby-plugin

medienbaecker/kirby-modules
===========================

Easily add modules to your pages

3.0.0(4mo ago)875.3k71MITPHPCI failing

Since Nov 19Pushed 1mo ago9 watchersCompare

[ Source](https://github.com/medienbaecker/kirby-modules)[ Packagist](https://packagist.org/packages/medienbaecker/kirby-modules)[ GitHub Sponsors](https://github.com/medienbaecker)[ RSS](/packages/medienbaecker-kirby-modules/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (36)Used By (1)

Kirby Modules
=============

[](#kirby-modules)

Modular page building for [Kirby](https://getkirby.com/) using regular Kirby pages with their own blueprint and snippet, edited inline on the parent page.

[![Screenshot of the modules section with two modules, a text module with a textarea and a text with buttons module with both a textarea and a structure field for buttons](.github/screenshot.webp)](.github/screenshot.webp)

Licensing
---------

[](#licensing)

Kirby Modules is a commercial plugin. You can use it for free on local environments but using it in production requires a valid licence. You can pay what you want, the suggested price being 99€ per project. Feel free to choose "0" when working on a purposeful project ❤️

[Buy a licence](https://medienbaecker.com/plugins/modules)

Features
--------

[](#features)

- Edit module fields inline on the parent page with a blocks-like UI
- Draft previews for individual modules
- Great performance with large numbers of modules
- Robust multilanguage behaviour
- Automatic container page creation, separating modules from regular subpages
- Multiple modules sections per page
- Sensible defaults in module blueprints

Installation
------------

[](#installation)

```
composer require medienbaecker/kirby-modules

```

Or download this repository and put it into `site/plugins/kirby-modules`.

What's a Module?
----------------

[](#whats-a-module)

A module is a regular page, differentiated from other pages by being inside a modules container. This makes it possible to use pages as modules without sacrificing regular subpages.

```
Page
├── Subpage A
├── Subpage B
└── Modules
    ├── Module A
    └── Module B

```

Quick Start
-----------

[](#quick-start)

Add a ([or multiple](#multiple-sections)) modules section to your page blueprint:

```
# site/blueprints/pages/default.yml
title: Default Page
sections:
  modules:
    type: modules
```

Create a module blueprint and snippet:

```
# site/blueprints/modules/text.yml
title: Text
fields:
  textarea:
    label: Text
```

```
// site/snippets/modules/text.php
