mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 20:27:40 +02:00
Pages Plugin: add action improvements.
This commit is contained in:
@@ -198,11 +198,12 @@
|
|||||||
if (count($errors) == 0) {
|
if (count($errors) == 0) {
|
||||||
|
|
||||||
// Insert new page
|
// Insert new page
|
||||||
if($pages->insert(array('slug' => Security::safeName(Request::post('page_name'), '-', true),
|
if ($pages->insert(array('slug' => Security::safeName(Request::post('page_name'), '-', true),
|
||||||
'template' => Request::post('templates'),
|
'template' => Request::post('templates'),
|
||||||
'parent' => $parent_page,
|
'parent' => $parent_page,
|
||||||
'status' => Request::post('status'),
|
'status' => Request::post('status'),
|
||||||
'access' => Request::post('access'),
|
'access' => Request::post('access'),
|
||||||
|
'expand' => '0',
|
||||||
'robots_index' => $robots_index,
|
'robots_index' => $robots_index,
|
||||||
'robots_follow'=> $robots_follow,
|
'robots_follow'=> $robots_follow,
|
||||||
'title' => Request::post('page_title'),
|
'title' => Request::post('page_title'),
|
||||||
|
Reference in New Issue
Block a user