V
V
viktorulyushev2017-01-24 10:09:55
PHP
viktorulyushev, 2017-01-24 10:09:55

Bitrix. How to pass a link to a detailed image to result_modifier?

I have element properties passed to result_modifier in this way

$arSelect = Array("ID", "IBLOCK_ID", "CODE", "NAME", "PROPERTY_CITIES.CODE", "PROPERTY_SERVICES", "PROPERTY_MODE" , "DETAIL_TEXT" ,  "DETAIL_PICTURE" , "FILE_NAME");
$arFilter = Array("PROPERTY_EMPLOYER.ID"=> $arResult["ID"], "SECTION_ID" => 61);
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array(), $arSelect);
$arResult["DOCTORS"] = array();
while($ob = $res->GetNextElement())
{
 $arFields = $ob->GetFields();
 array_push($arResult["DOCTORS"], $arFields);
}

but DETAIL_PICTURE only sends ID, how to send SRC?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danbka, 2017-01-24
@Danbka

Before something can be transmitted, it must be received. For example, using the CFile::GetFileArray() method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question