Answer the question
In order to leave comments, you need to log in
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 => "",
),
)
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
<img src="<?=$arWork['DETAIL_PICTURE']['SRC']?>">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question