A
A
Alexander Ivanov2016-03-03 16:14:47
1C-Bitrix
Alexander Ivanov, 2016-03-03 16:14:47

How to display ["DETAIL_PICTURE"]["SRC"] in bitrix:news?

there is a result_modifier.php file, as I understand it, you need to output it somehow ["DETAIL_PICTURE"] ["SRC"] through it.
although, now I think that it is necessary to set ["DETAIL_PICTURE"] through the template or display through the properties.

array(
    "FIELD_CODE" => array(
      0 => "DETAIL_PICTURE",
      1 => "",
    ),
)

output like this, but still somehow does not display
foreach ($arItem["DETAIL_PICTURE"] as $arWork){ 
    if($arWork == [1]) {
       echo "Во мне живёт ".$arWork." !<br>";
    }
  }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rad1calDreamer, 2016-03-04
@cimonlebedev

  1. specify DETAIL_PICTURE in component call
  2. display a picture
<img src="<?=$arWork['DETAIL_PICTURE']['SRC']?>">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question