mirror of
https://github.com/getgrav/grav.git
synced 2026-02-19 04:58:21 +01:00
Flex Pages: Added support for raw root editing
This commit is contained in:
@@ -224,7 +224,7 @@ class PageObject extends FlexPageObject
|
||||
/** @var Admin|null $admin */
|
||||
$admin = Grav::instance()['admin'] ?? null;
|
||||
if ($admin) {
|
||||
$template = $this->isModule() ? 'modular_raw' : 'raw';
|
||||
$template = $this->isModule() ? 'modular_raw' : (!$this->root() ? 'raw' : 'root_raw');
|
||||
|
||||
return $admin->blueprints("admin/pages/{$template}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user