From eee5261b23dcab4ff7103374975ff18ecceed372 Mon Sep 17 00:00:00 2001
From: "michael.daniel" <michael.danielczok@gmail.com>
Date: Tue, 2 Jan 2018 14:11:56 +0100
Subject: [PATCH] =?UTF-8?q?quiqqer/package-portfolio#31=20feat:=20Wenn=20R?=
 =?UTF-8?q?eferenzliste=20Popups=20erlaubt=20(vorhandene=20Einstellung),?=
 =?UTF-8?q?=20dann=20wird=20beim=20Klicken=20auf=20ein=20Eintrag=20das=20P?=
 =?UTF-8?q?opup=20mit=20gew=C3=BCnschter=20Referenz=20ge=C3=B6ffnet=20stat?=
 =?UTF-8?q?t=20die=20Seite=20direkt.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/QUI/TemplateHelios/Controls/StartpageCarousel.html | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lib/QUI/TemplateHelios/Controls/StartpageCarousel.html b/lib/QUI/TemplateHelios/Controls/StartpageCarousel.html
index 625a573..64c619c 100644
--- a/lib/QUI/TemplateHelios/Controls/StartpageCarousel.html
+++ b/lib/QUI/TemplateHelios/Controls/StartpageCarousel.html
@@ -4,13 +4,19 @@
     {foreach from=$children item=Child}
     <article>
         <div class="carousel-extra-div">
-            <a href="{url site=$Child}" class="image featured">
+
+            {assign var=url value=$Child->getUrlRewritten()}
+            {if $Child->getParent()->getAttribute('quiqqer.portfolio.settings.portfolioNoPopup') == false}
+                {assign var=url value="`$Child->getParent()->getUrlRewritten()`#`$Child->getId()`"}
+            {/if}
+
+            <a href="{$url}" class="image featured">
                 {image src=$Child->getAttribute('image_site') width=400 class="carousel-image"}
             </a>
             </div>
         <header>
             <h3>
-                <a href="{url site=$Child}">
+                <a href="{$url}">
                     {$Child->getAttribute('title')}
                 </a>
             </h3>
-- 
GitLab