I have been playing around with the modules plugin in combination with the sortable field. It’s working, however when i click the add button on the sortable field, I get to choose from all available templates, not just the the modules. How do i restrict it to just the modules? Is this possible? Have I missed something? I’ve set it up to use a modules subfolder to store the modules, as recommended in the modules plugin docs.
Here is my home blueprint:
title: Home
pages:
template: home
build:
- title: _modules
uid: modules
template: modules
files:
fields:
imagefilemeta: imagefilemeta
fields:
seo: metadata
created: creation
pagedata: articlecontent
And heres my modules blueprint:
title: Modules
hide: true
pages:
template:
- module.videolocal
- module.videovimeo
- module.videoyoutube
and the sortable field is inside a field group:
type: group
fields:
articlecontent:
label: Page Content
type: tabs
articleimage:
label: Article Image
type: image
text: Article Image
pageintro:
label: Summary
help: The page summary, used as teasers
type: simplemde
pagetext:
label: Content
type: simplemde
help: The pages content
modules:
label: Modules
type: modules
add: true
copy: true
paste: true
limit: false
variant: modules
actions:
- edit
- duplicate
- delete
- toggle
options:
preview: true
limit: false
edit: true
duplicate: true
delete: true
toggle: true
Have i missed something?