Answer the question
In order to leave comments, you need to log in
Display multiple property of Bitrix infoblock?
Hello, I rummaged through a bunch of forums, how to display the multiple property of the Bitrix infoblock? Type string or file
All properties are displayed like this
<?foreach($arItem["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
<small>
<?if(is_array($arProperty["DISPLAY_VALUE"])):?>
<?=implode(" / ", $arProperty["DISPLAY_VALUE"]);?>
<?else:?>
<?=$arProperty["DISPLAY_VALUE"];?>
<?endif?>
</small><br />
<?endforeach;?>
Answer the question
In order to leave comments, you need to log in
The issue is a little unclear.
What you bring is the output of properties in template news.list for example.
If you have selected the necessary property for display in the component parameters.
Then its values will be in
And the output of the property will be accordingly
<?foreach($arItem["PROPERTIES"]["КОД_НУЖНОГО_СВОЙСТВА"]["VALUE"] as $val):?>
<?print_r($val);?>
<?endforeach;?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question