Add option to create modular content

This commit is contained in:
Matias Griese
2014-10-10 11:57:57 +03:00
parent 1d8af0ec69
commit 130fd7e656
3 changed files with 10 additions and 1 deletions

View File

@@ -364,7 +364,10 @@ class AdminController
$data = $this->post;
$route = $data['route'] != '/' ? $data['route'] : '';
$folder = $data['folder'];
$folder = ltrim($data['folder'], '_');
if (!empty($data['modular'])) {
$folder = '_' . $folder;
}
$path = $route . '/' . $folder;
$this->admin->session()->{$path} = $data;