Skip to content

Commit a742eab

Browse files
committed
Add pages section to modules container
1 parent 93c8184 commit a742eab

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "medienbaecker/kirby-modules",
33
"description": "Easily add modules to your pages",
4-
"version": "2.8.2",
4+
"version": "2.8.3",
55
"license": "MIT",
66
"authors": [
77
{

lib/functions.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function createModuleRegistry() {
7676
}
7777

7878
// ----------------------------------------------------------------------
79-
// Add modules container blueprint with redirect field
79+
// Add modules container blueprint with pages section and redirect field
8080
// ----------------------------------------------------------------------
8181

8282
$registry['blueprints']['pages/modules'] = [
@@ -86,9 +86,16 @@ function createModuleRegistry() {
8686
'changeStatus' => false,
8787
'changeTemplate' => false
8888
],
89-
'fields' => [
90-
'modules_redirect' => true
91-
]
89+
'sections' => [
90+
'pages' => [
91+
'templates' => $blueprintNames
92+
],
93+
'fields' => [
94+
'fields' => [
95+
'modules_redirect' => true
96+
]
97+
]
98+
],
9299
];
93100

94101
// ----------------------------------------------------------------------

0 commit comments

Comments
 (0)