support for independent file name and template override

This commit is contained in:
Andy Miller
2015-08-29 10:43:58 -06:00
parent c8fcda0372
commit e2e1076e8e
4 changed files with 7 additions and 5 deletions

View File

@@ -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;