-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I am struggling a little with setting up modules correctly, could someone document how the modules-plugin should be setup in order for the field and plugin to work together.
The readme at https://github.com/getkirby-plugins/modules-plugin talks about two methods of setting up.
Option 1
site/blueprints/default.yml
title: Default
pages:
template:
- module.text
- module.gallery
Option 2
site/blueprints/default.yml
title: Default
pages:
template: default
build:
- title: _modules
uid: modules
template: modules
...site/blueprints/modules.yml
title: Modules
pages:
template:
- module.text
- module.galleryDoes it make a difference which I use or is there one option I should be using in order for the field to work correctly?
In the readme for this field when you mention the blueprint, is that to go in the blueprints created in either of the options?
For example do I put them in the default blueprint..
site/blueprints/default.yml
title: Default
pages:
template: default
build:
- title: _modules
uid: modules
template: modules
fields:
modules:
label: Modules
type: modulesI am fairly competent with Kirby and the general use of blueprints, snippets, fields, templates and controllers. But I am finding the concept of these modules hard to implement and would appreciate a little more information if possible.
At the moment without the field when I create a new page it then creates a folder "_modules" and then I open that folder, and then add another "page" choose the template and then fill in the content.
The above workflow does seems a little complicated, but I can just about get my head around it and what is actually happening. But the idea of a "page within a page within a page" is not something I would want or expect a client to have to deal with.
Hopefully someone can explain a little on how these modules should be used. Thanks