from server 31.12

This commit is contained in:
root 2022-12-30 20:38:23 +00:00
parent 39d5c9fc50
commit daf1fad957
2 changed files with 25 additions and 21 deletions

View File

@ -35,7 +35,7 @@ class postsController extends Controller
'postGroup' => input('group'),
'published' => true,
'featured' => input('featured') == true ? 1 : 0,
'select' => ['id','title','slug','published_at',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")]
'select' => ['id','title','slug','published_at', 'more_photo', DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")]
]);
if($data){

View File

@ -120,6 +120,26 @@ items:
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: 'Новости бизнеса'
nesting: null
type: url
url: /ru/new/posts/news/novosti-biznesa
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: 'Business news'
url: /en/new/posts/news/business-news
tm:
title: 'Biznes habarlary'
url: /tm/new/posts/news/biznes-habarlary
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Спорт
nesting: null
@ -200,26 +220,6 @@ items:
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: 'Новости бизнеса'
nesting: null
type: url
url: /ru/new/posts/news/novosti-biznesa
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: 'Business news'
url: /en/new/posts/news/business-news
tm:
title: 'Biznes habarlary'
url: /tm/new/posts/news/biznes-habarlary
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Статьи
nesting: null
@ -423,9 +423,13 @@ items:
isExternal: '0'
-
title: Медиа
nesting: null
type: url
url: /ru/new/posts/media
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en: