]> _ Git - pmi.git/commitdiff
wip #3579 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 8 Apr 2020 18:12:17 +0000 (20:12 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 8 Apr 2020 18:12:17 +0000 (20:12 +0200)
app/SubForms/HomeProductHighlight.php
resources/views/partials/home-products.blade.php

index ef9d5c229cf1d393d2ae77cb72fb0b9fe05ddf54..ee5cbbd9884bd1ff218e96c5ad6f3d531f79e289 100644 (file)
@@ -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']);
     }
 }
index f1d867955a8a8f07e298a771f6414e4f394a5a48..fe6e24d9222689d3cef7d59cb5ac47a9f21ef44d 100644 (file)
@@ -1,6 +1,6 @@
 <div class="bg-white px-1v py-6 flex">
     <a class="animated-underline partial-underline flex flex-col justify-between w-full"
-       href="{{ $nav->getHrefById('product_type/'.$highlight['link']) }}">
+       href="{{ $nav->getHrefById($highlight['page']) }}">
         <div class="flex items-center justify-center flex-grow">
             {{-- Proportional image holder --}}
             <div class="mb-4 bg-contain bg-no-repeat bg-center w-full">