FEATURE: add content page overview

This commit is contained in:
Michal Kváček
2016-08-22 23:29:04 +02:00
parent f6fd924cbd
commit d746d5b52b
11 changed files with 319 additions and 97 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ class Content extends Model
public function getOverview($handler = false, $status = false, $joinAuthor = false, $joinParent = false)
{
$query = DB::table('contents')
->select('contents.*', 'modules.name AS module_name')
->select('contents.*', 'modules.name AS module_name', 'modules.id AS module_id')
->where('contents.status', '<>', self::STATUS_DELETED)
->where('contents.language', LaravelLocalization::getCurrentLocale())
->join('modules', 'modules.handler', '=', 'contents.module_handler')