Hallo Zusammen,
ich hab mal wieder eine Herausforderung. Ich möchte in zwei Reitern jeweils eine Produktliste ausgeben.
Reiter 1 = Kategorie X
Reiter 2 = Kategorie Y
Hab mir die list.tpl angeschaut und denke mit dem hier kann ich sicher was anfangen:
Doch wie muss ich diesen code entsprechend anpassen, oder ist das ein Holzweg?
Vielen Dank. Gruß
[{assign var="cnt" value=0 }]
[{foreach from=$oView->getArticleList() item=actionproduct name=test_articleList}]
<div class="prodpop">
[{assign var=cnt value=$cnt+1 }]
[{math assign="counter" equation="(x-y)" x=1000 y=$cnt }]
[{include file="inc/product.tpl" size="small" product=$actionproduct testid="action_"|cat:$actionproduct->oxarticles__oxid->value test_Cntr=$smarty.foreach.test_articleList.iteration}]
</div>
[{/foreach}]
PS: Wenn ich diesen code aktuell in eine Seite einbinde, gibts einen redirect:
index.php?cl=start&redirected=1
Seltsam. Warum?