From: Vincent Vanwaelscappel Date: Wed, 15 Jan 2020 18:23:35 +0000 (+0100) Subject: wip #3323 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fce136745820982b801c10fae40206816549a276;p=pmi.git wip #3323 @0.5 --- diff --git a/app/Templates/Catalog.php b/app/Templates/Catalog.php index 36cdcbc..d5bfa45 100644 --- a/app/Templates/Catalog.php +++ b/app/Templates/Catalog.php @@ -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()); diff --git a/app/Templates/News.php b/app/Templates/News.php index a16a6eb..7637ec9 100644 --- a/app/Templates/News.php +++ b/app/Templates/News.php @@ -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); diff --git a/app/Templates/Solution.php b/app/Templates/Solution.php index 1026d93..5332eb5 100644 --- a/app/Templates/Solution.php +++ b/app/Templates/Solution.php @@ -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);