]> _ Git - odl.git/commitdiff
wip #5007 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jan 2022 18:38:50 +0000 (19:38 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jan 2022 18:38:50 +0000 (19:38 +0100)
app/Http/Controllers/FrontController.php
resources/views/front/media-library.blade.php

index 9ff75b653627e595ac3b942178ef70a3aa0f8ca0..640c0839450f09441c093fef220a00cca8a13b3a 100644 (file)
@@ -73,7 +73,7 @@ class FrontController extends Controller
 
     protected function _getMediaLibraryFromCMS()
     {
-        return ['themes' => PageData::fromEntities(AssetTheme::all()), 'assets' => PageData::fromEntities(Asset::whereNotNull('theme')->get())];
+        return ['themes' => PageData::fromEntities(AssetTheme::all()), 'assets' => PageData::fromEntities(Asset::whereNotNull('theme')->orderBy('code','ASC')->get())];
     }
 
     protected function _getResourcesPDFFromCMS()
index 055762ce5c72a2a51c0ba4601a7935a673a67ff2..2dca625d0ffc27aac9cf99943d36e8a5cf72b3da 100644 (file)
@@ -38,6 +38,7 @@
                 'id'=>$a->get('id'),
                 'type'=>$type,
                 'theme'=>$a->get('theme'),
+                'code'=>$a->get('code'),
                 'title'=>$a->get('title'),
                 'file'=>$a->getImageURLbyCollection($a->get('file_upload')),
                 'image'=>$a->getImageURLbyCollection($a->get('file_thumb'))??$a->getImageURLbyCollection($a->get('file_upload'),'poster'),