G
G
grinch_asd2019-01-08 15:14:36
1C-Bitrix
grinch_asd, 2019-01-08 15:14:36

Bitrix. The image is not displayed from the binding to the elements?

Hello.
The site has an IB that has the "binding to elements" property. The title and description are displayed like this

<?foreach($arResult["PROPERTIES"]["TWO_COLUMNS_ICONS"]["VALUE"] as $analog):?> 
      <?$res = CIBlockElement::GetByID($analog);?> 
      <?if($ar_res = $res->GetNext())?> 
      <?=$ar_res["PREVIEW_TEXT"];?>
    <?endforeach;?>

But the image cannot be displayed in this way. Tell me how to withdraw

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-01-08
@grinch_asd

But the image can't be rendered.

In what "thus" way? Where are you displaying the image? Show the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question