Hallo!
ich habe eine Seite auf der alle Artikel gelistet werden. Die Schnell-Sortierung kann man ja im Backend vornehmen.
Das wird wohl der Code sein:
[{foreach from=$oView->getArticleList() item=actionproduct name=test_articleList}]
[{include file="inc/TEMPLATE.tpl" product=$actionproduct testid="action_"|cat:$actionproduct->oxarticles__oxid->value test_Cntr=$smarty.foreach.test_articleList.iteration}]
[{/foreach}]
Es gibt dazu eine Filterung mit Attributen:
<table cellpadding="0" cellspacing="0">
[{foreach from=$oView->getAttributes() item=oFilterAttr key=sAttrID name=testAttr}]
<tr>
<td>
<label id="test_attrfilterTitle_[{$sAttrID}]_[{$smarty.foreach.testAttr.iteration}]">[{ $oFilterAttr->title }]:</label>
</td>
<td>
<select name="attrfilter[[{ $sAttrID }]]" onchange="oxid.form.send('_filterlist');">
<option value="" selected>[{ oxmultilang ident="LIST_PLEASECHOOSE" }]</option>
[{foreach from=$oFilterAttr->aValues item=oValue}]
<option value="[{ $oValue->id }]" [{ if $oValue->blSelected }]selected[{/if}]>[{ $oValue->value }]</option>
[{/foreach}]
</select>
</td>
</tr>
[{/foreach}]
</table>
Kann ich nicht irgendwie die Ausgabe mit den Attributen machen? Also z.B. nach Farben?