]> _ Git - odl.git/commitdiff
wip #4914 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Jan 2022 19:13:23 +0000 (20:13 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Jan 2022 19:13:23 +0000 (20:13 +0100)
app/Http/Controllers/FrontController.php
app/Models/Publication.php

index 55e1ca110dbce8b62474eb56219f239c1b12995e..76df174a56dc61b6e46539151213275b6cbafd95 100644 (file)
@@ -63,7 +63,9 @@ class FrontController extends Controller
 
     protected function _getHomeFromCMS()
     {
-        return Publication::find('1')->getPageData();
+        $res= Publication::find('1')->getPageData();
+        dd($res);
+        return $res;
     }
 
     protected function _getMediaLibraryFromCMS()
index 8afdc0c63c99ab51b87bb7c2e88793ad7ea95604..95bcebaa7665c22c636bb58d3d5c87071453a364 100644 (file)
@@ -19,7 +19,6 @@ class Publication extends CubistMagicAbstractModel
         'plural' => 'publications',
         'oneinstance' => true];
 
-
     public function setFields()
     {
         parent::setFields();
@@ -31,10 +30,6 @@ class Publication extends CubistMagicAbstractModel
         $this->addField('illustration', Images::class, 'Image', ['tab' => 'Contenus']);
         $this->addField('button', Text::class, 'Intitulé du bouton', ['tab' => 'Contenus']);
         $this->addField('raccourcis', BunchOfFieldsMultiple::class, '', ['tab' => 'Raccourcis', 'bunch' => HomeShortcut::class]);
-//        $this->addField('s_download', FormSection::class, 'Téléchargement et impression');
-//        $this->addField("download_name", Text::class, 'Nom du fichier', ['default' => 'document.pdf']);
-//        $this->addField('pdf_download', Files::class, 'PDF pour le téléchargement et l\'impression');
-
     }
 
     /**