FEATURE: add translation for static page
This commit is contained in:
@@ -27,8 +27,6 @@ class CreateNewStaticPage extends Controller
|
|||||||
{
|
{
|
||||||
$page = new Content();
|
$page = new Content();
|
||||||
|
|
||||||
// @todo add module_handler
|
|
||||||
|
|
||||||
$page->user_id = \Auth::user()->id;
|
$page->user_id = \Auth::user()->id;
|
||||||
$page->title = $request->title;
|
$page->title = $request->title;
|
||||||
$page->published_from = $request->publishedFrom;
|
$page->published_from = $request->publishedFrom;
|
||||||
@@ -36,6 +34,7 @@ class CreateNewStaticPage extends Controller
|
|||||||
$page->meta_keywords = $request->meta_description;
|
$page->meta_keywords = $request->meta_description;
|
||||||
$page->meta_description = $request->meta_description;
|
$page->meta_description = $request->meta_description;
|
||||||
$page->content = $request->pageContent;
|
$page->content = $request->pageContent;
|
||||||
|
$page->module_handler = config('staticpages.handler');
|
||||||
|
|
||||||
$page->save();
|
$page->save();
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,14 @@ return [
|
|||||||
'overview' => 'List of all static pages',
|
'overview' => 'List of all static pages',
|
||||||
'new' => 'Create new static page',
|
'new' => 'Create new static page',
|
||||||
'content' => 'Page content',
|
'content' => 'Page content',
|
||||||
'save' => 'Save new page'
|
'save' => 'Save new page',
|
||||||
|
'basicInfo' => 'Basic information',
|
||||||
|
'metaOptions' => 'Meta information',
|
||||||
|
'publicationOptions' => 'Publication setup',
|
||||||
|
'field_title' => 'Page title',
|
||||||
|
'field_url' => 'URL',
|
||||||
|
'field_meta_keywords' => 'Keywords',
|
||||||
|
'field_meta_description' => 'Page description',
|
||||||
|
'field_published_from' => 'Published from',
|
||||||
|
'field_published_to' => 'Published to'
|
||||||
];
|
];
|
||||||
Reference in New Issue
Block a user