diff --git a/lib/QUI/TemplateHelios/Controls/StartpageCarousel.html b/lib/QUI/TemplateHelios/Controls/StartpageCarousel.html index 625a573844a6a52179ebac6142b58b33c1fcc260..64c619ce9f1eb6721f63e9cf4247639f01f7b963 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>