Merge branch 'module_blog' into admin_theme

This commit is contained in:
Michal Kváček
2016-08-19 13:19:14 +02:00
45 changed files with 785 additions and 23 deletions
+4
View File
@@ -56,6 +56,10 @@ abstract class Handler extends BaseHandler implements AppHandler
// temporarily nothing to do
}
public static function loadExtraData(Content $content) {
// temporarily nothing to do
}
public static function getExtendedFormInputsEdit()
{
return self::getExtendedFormInputsCreate();
@@ -73,6 +73,7 @@ class TemplateRegistrator
public function unsetNamespace()
{
$this->namespace = null;
$this->setModuleId(null);
}
/**
@@ -95,6 +96,8 @@ class TemplateRegistrator
// register path
$this->registerPath($this->registeredPath, $name);
$this->unsetNamespace();
}
/**
@@ -194,6 +197,8 @@ class TemplateRegistrator
'editable' => 1
];
echo 'ukladam do db '.$templateName."\n";
// save template into database
$newTemplate = Template::create($params);
@@ -109,7 +109,7 @@ class CreateNewContent extends Controller
$page->status = $request->status;
$page->template = $request->template;
$page->module_handler = $module->handler;
$page->category_id = $request->category;
$page->category_id = (int)$request->category > 0 ? $request->category : null;
if ($request->parentPage) {
$page->parent_id = $request->parentPage;