mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-06 15:43:01 +01:00
support for independent file name and template override
This commit is contained in:
@@ -583,11 +583,11 @@ class Admin
|
||||
|
||||
}
|
||||
|
||||
if ($data['type'] == 'modular') {
|
||||
if ($data['name'] == 'modular') {
|
||||
$header['body_classes'] = 'modular';
|
||||
}
|
||||
|
||||
$name = $page->modular() ? str_replace('modular/', '', $data['type']) : $data['type'];
|
||||
$name = $page->modular() ? str_replace('modular/', '', $data['name']) : $data['name'];
|
||||
$page->name($name . '.md');
|
||||
$page->header($header);
|
||||
$page->frontmatter(Yaml::dump((array)$page->header(), 10, 2, false));
|
||||
|
||||
Reference in New Issue
Block a user