Skip to content

Commit

Permalink
Add pages section to modules container
Browse files Browse the repository at this point in the history
  • Loading branch information
medienbaecker committed Jul 1, 2024
1 parent 93c8184 commit a742eab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "medienbaecker/kirby-modules",
"description": "Easily add modules to your pages",
"version": "2.8.2",
"version": "2.8.3",
"license": "MIT",
"authors": [
{
Expand Down
15 changes: 11 additions & 4 deletions lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function createModuleRegistry() {
}

// ----------------------------------------------------------------------
// Add modules container blueprint with redirect field
// Add modules container blueprint with pages section and redirect field
// ----------------------------------------------------------------------

$registry['blueprints']['pages/modules'] = [
Expand All @@ -86,9 +86,16 @@ function createModuleRegistry() {
'changeStatus' => false,
'changeTemplate' => false
],
'fields' => [
'modules_redirect' => true
]
'sections' => [
'pages' => [
'templates' => $blueprintNames
],
'fields' => [
'fields' => [
'modules_redirect' => true
]
]
],
];

// ----------------------------------------------------------------------
Expand Down

0 comments on commit a742eab

Please sign in to comment.