Выводим в таблице список свойст по каждому из элементов:
[CODE]<?foreach($arResult["ITEMS"] as $arElement):?>
<table>
<?foreach($arElement["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
<tr>
<td>
<?=$arProperty["NAME"]?>
</td>
<td>
<?if(is_array($arProperty["DISPLAY_VALUE"])):?>
<?=implode("/", $arProperty["DISPLAY_VALUE"]);?>
<?else:?>
<?=$arProperty["DISPLAY_VALUE"];?>
<?endif?>
</td>
</tr>
<?endforeach;?>
</table>
<?endforeach;?>[/CODE]
Подскажите, как можно отфильтровать свойства у которых отсутствуют значения.
[CODE]<?foreach($arResult["ITEMS"] as $arElement):?>
<table>
<?foreach($arElement["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
<tr>
<td>
<?=$arProperty["NAME"]?>
</td>
<td>
<?if(is_array($arProperty["DISPLAY_VALUE"])):?>
<?=implode("/", $arProperty["DISPLAY_VALUE"]);?>
<?else:?>
<?=$arProperty["DISPLAY_VALUE"];?>
<?endif?>
</td>
</tr>
<?endforeach;?>
</table>
<?endforeach;?>[/CODE]
Подскажите, как можно отфильтровать свойства у которых отсутствуют значения.