# Wo wird die Variable $productBoxLayout ausgegeben?

**URL:** <https://forum.shopware.com/t/wo-wird-die-variable-productboxlayout-ausgegeben/38976>\
**Category:** Programmierung\
**Created:** [11. August 2016 um 09:51 UTC](https://forum.shopware.com/t/wo-wird-die-variable-productboxlayout-ausgegeben/38976 "2016-08-11T09:51:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![web8022](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@web8022](https://forum.shopware.com/u/web8022)\
**Post date:** [11. August 2016 um 09:51 UTC](https://forum.shopware.com/t/wo-wird-die-variable-productboxlayout-ausgegeben/38976/1 "2016-08-11T09:51:53Z")

</div>

Hallo Leute,

&nbsp;

arbeite gerade daran einen eigenen Produkt-Slider Template zu erstellen und komme nicht weiter. Die Datei “/themes/Frontend/THEME/frontend/listing/box\_article.tpl” hat bei mir folgende Struktur:

&nbsp;

{block name=“frontend\_listing\_box\_article\_includes”}

&nbsp; &nbsp; {if $productBoxLayout == ‘minimal’}  
&nbsp; &nbsp; &nbsp; &nbsp; {include file=“frontend/listing/product-box/box-minimal.tpl”}

&nbsp; &nbsp; {elseif $productBoxLayout == ‘image’}  
&nbsp; &nbsp; &nbsp; &nbsp; {include file=“frontend/listing/product-box/box-big-image.tpl”}

&nbsp; &nbsp; {elseif $productBoxLayout == ‘slider’}  
&nbsp; &nbsp; &nbsp; &nbsp; {include file=“frontend/listing/product-box/box-product-slider.tpl”}

&nbsp; &nbsp; {elseif $productBoxLayout == ‘emotion’}  
&nbsp; &nbsp; &nbsp; &nbsp; {include file=“frontend/listing/product-box/box-emotion.tpl”}

&nbsp; **&nbsp; {elseif $productBoxLayout == ‘newslider’}  
&nbsp; &nbsp; &nbsp; &nbsp; {include file=“frontend/listing/product-box/newslider.tpl”}**

&nbsp; &nbsp; {else}  
&nbsp; &nbsp; &nbsp; &nbsp; {block name=“frontend\_listing\_box\_article\_includes\_additional”}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {include file=“frontend/listing/product-box/box-basic.tpl” productBoxLayout=“basic”}  
&nbsp; &nbsp; &nbsp; &nbsp; {/block}  
&nbsp; &nbsp; {/if}  
{/block}

&nbsp;

Jetzt möchte ich nun, dass sich “newslider.tpl” aktiviert, sobald ein ProductStream verfügbar ist. Ziel ist es hierbei, das Aussehen der ProductStreams zu ändern, ohne das Aussehen von den anderen Produkt-Slidern, wie bspw. “Kunden haben sich ebenfalls angesehen”, zu beeinflussen.&nbsp;

&nbsp;

Hoffe konnte vermitteln worum es geht und danke euch für eure Mithilfe.

&nbsp;

Cheers

&nbsp;

---

<div class="post-metadata">

**Author:** ![web8022](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@web8022](https://forum.shopware.com/u/web8022)\
**Post date:** [11. August 2016 um 10:16 UTC](https://forum.shopware.com/t/wo-wird-die-variable-productboxlayout-ausgegeben/38976/2 "2016-08-11T10:16:13Z")

</div>

Noch eine kleine Anmerkung:

&nbsp;

In “box-basic.tpl” hat die erste Division folgende Struktur:&nbsp;

&nbsp;

div class=“product–box box-- **{$productBoxLayout}** ”  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data-page-index="{$pageIndex}"  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data-ordernumber="{$sArticle.ordernumber}"  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{if !{config name=disableArticleNavigation}} data-category-id="{$sCategoryCurrent}"{/if}\>

&nbsp;

Wenn ich diesen Div dann auf der Artikelseite im Quellcode suche hat Sie folgende Ausgabe:&nbsp;

div class=“product–box box-- **slider** ” data-page-index=""…\>

&nbsp;

Die Frage ist nun, warum wird hier “slider” ausgegeben und nicht bspw. “emotion” oder “image”? Wie wird dieser Wert “kontrolliert”?&nbsp; ![Foot-in-Mouth](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bedbc37f276faa6d086ddea9cd70cb0550bbd56e.png "Foot-in-Mouth")
