FEATURE: add translation for static page
This commit is contained in:
@@ -27,8 +27,6 @@ class CreateNewStaticPage extends Controller
|
||||
{
|
||||
$page = new Content();
|
||||
|
||||
// @todo add module_handler
|
||||
|
||||
$page->user_id = \Auth::user()->id;
|
||||
$page->title = $request->title;
|
||||
$page->published_from = $request->publishedFrom;
|
||||
@@ -36,6 +34,7 @@ class CreateNewStaticPage extends Controller
|
||||
$page->meta_keywords = $request->meta_description;
|
||||
$page->meta_description = $request->meta_description;
|
||||
$page->content = $request->pageContent;
|
||||
$page->module_handler = config('staticpages.handler');
|
||||
|
||||
$page->save();
|
||||
|
||||
|
||||
@@ -1,7 +1,16 @@
|
||||
<?php
|
||||
return [
|
||||
'overview' => 'List of all static pages',
|
||||
'new' => 'Create new static page',
|
||||
'content' => 'Page content',
|
||||
'save' => 'Save new page'
|
||||
'overview' => 'List of all static pages',
|
||||
'new' => 'Create new static page',
|
||||
'content' => 'Page content',
|
||||
'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