mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-12-24 01:10:42 +01:00
support for independent file name and template override
This commit is contained in:
@@ -1300,8 +1300,8 @@ class AdminController
|
||||
$page->folder($ordering . $slug);
|
||||
}
|
||||
|
||||
if (isset($input['type']) && !empty($input['type'])) {
|
||||
$type = (string) strtolower($input['type']);
|
||||
if (isset($input['name']) && !empty($input['name'])) {
|
||||
$type = (string) strtolower($input['name']);
|
||||
$name = preg_replace('|.*/|', '', $type);
|
||||
if ($language) {
|
||||
$name .= '.' . $language;
|
||||
|
||||
Reference in New Issue
Block a user