A
A
Alex2016-03-20 14:59:56
1C-Bitrix
Alex, 2016-03-20 14:59:56

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("&nbsp;/&nbsp;", $arProperty["DISPLAY_VALUE"]);?>
      <?else:?>
        <?=$arProperty["DISPLAY_VALUE"];?>
      <?endif?>
      </small><br />
  
   	<?endforeach;?>

But I need it separately, thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Savrasov, 2016-03-20
@astrodeep

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 question

Ask a Question

731 491 924 answers to any question