From: Vincent Vanwaelscappel Date: Wed, 8 Apr 2020 18:12:17 +0000 (+0200) Subject: wip #3579 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=99fea93190d4820553041ffe247861fa9edfff8b;p=pmi.git wip #3579 @0.25 --- diff --git a/app/SubForms/HomeProductHighlight.php b/app/SubForms/HomeProductHighlight.php index ef9d5c2..ee5cbbd 100644 --- a/app/SubForms/HomeProductHighlight.php +++ b/app/SubForms/HomeProductHighlight.php @@ -25,5 +25,9 @@ class HomeProductHighlight extends SubForm 'label' => 'Catégorie', 'optionsmodel' => 'App\Models\Producttype', 'allows_null' => true]); + + $this->addField(['name' => 'page', + 'type' => 'PageInternal', + 'label' => 'Page']); } } diff --git a/resources/views/partials/home-products.blade.php b/resources/views/partials/home-products.blade.php index f1d8679..fe6e24d 100644 --- a/resources/views/partials/home-products.blade.php +++ b/resources/views/partials/home-products.blade.php @@ -1,6 +1,6 @@
+ href="{{ $nav->getHrefById($highlight['page']) }}">
{{-- Proportional image holder --}}