Versuch mal das bitte, es vergleicht PRODUCTS_NAME und filtert die doppelten raus.
Marcus
Code:
function remove_dups($array, $row_element) {
$new_array[0] = $array[0];
foreach ($array as $current) {
$add_flag = 1;
foreach ($new_array as $tmp) {
if ($current[$row_element]==$tmp[$row_element]) {
$add_flag = 0; break;
}
}
if ($add_flag) $new_array[] = $current;
}
return $new_array;
}
$module_content = remove_dups($module_content,0);
{foreach name=aussen item=module_data from=$module_content}
<dl class="preview">
<dd>
{if $module_data.PRODUCTS_IMAGE!=''}
<a href="{$module_data.PRODUCTS_LINK}">
<img src="{$module_data.PRODUCTS_IMAGE}" alt="{$module_data.PRODUCTS_NAME}" />
</a>
{/if}
<p class="shortdescreption">
<strong>{$module_data.PRODUCTS_NAME}</strong><br />
{$module_data.PRODUCTS_SHORT_DESCRIPTION|strip_tags|truncate:55:"...":true}<br />
ab {$module_data.PRODUCTS_PRICE}<br />
</p>
</dd>
<dd>
<span>{$module_data.BUTTON_BUY_NOW}</span>
<a href="{$module_data.PRODUCTS_LINK}" class="productlink">Details</a>
</dd>
</dl>
{/foreach}
Marcus