]> _ Git - pmi.git/commitdiff
wip #3323 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 Jan 2020 18:23:35 +0000 (19:23 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 Jan 2020 18:23:35 +0000 (19:23 +0100)
app/Templates/Catalog.php
app/Templates/News.php
app/Templates/Solution.php

index 36cdcbc3e99593ffef9d0e1b1f9df8c2b9ef7be9..d5bfa455a1b0bbd237664a96a6ef7a1894850f49 100644 (file)
@@ -48,6 +48,8 @@ class Catalog extends TemplateAbstract
                 }
 
                 $category = new PageItem();
+                $category->setVariant($menu->getVariant());
+                $category->setLocale($menu->getLocale());
                 $category->initFromEntity($productType);
                 $category->setTitle($productType->name);
                 $category->setHref($productType->getSlugOrTitleAttribute());
@@ -65,6 +67,7 @@ class Catalog extends TemplateAbstract
                     }
                     $detail = new PageItem();
                     $detail->setLocale($menu->getLocale());
+                    $detail->setVariant($menu->getVariant());
                     $detail->initFromEntity($product);
                     $detail->setTitle($product->name);
                     $detail->setHref($product->getSlugOrTitleAttribute());
index a16a6ebac79f452dd441fc5f7da9ddca976ce48c..7637ec92046983930b8c2f842fec56fcd741407f 100644 (file)
@@ -32,6 +32,8 @@ class News extends Base
 
             $item = new PageItem();
             $item->initFromEntity($newsItem);
+            $item->setLocale($menu->getLocale());
+            $item->setVariant($menu->getVariant());
             $item->setTitle($newsItem->title);
             $item->setHref($newsItem->slug); // Todo: consider having a configurable / translatable prefix for news URLs
             $item->setId('news/' . $newsItem->id);
index 1026d93f29f9315b436b5e8a1df74bccfbae7e40..5332eb5271c82c4d36e3efa53e6bd74953625475 100644 (file)
@@ -47,6 +47,8 @@ class Solution extends Base
             }
             $item = new PageItem();
             $item->initFromEntity($application);
+            $item->setVariant($menu->getVariant());
+            $item->setLocale($menu->getLocale());
             $item->setTitle($application->title);
             $item->setHref($application->getSlugOrTitleAttribute());
             $item->setId('application/' . $application->id);