E
E
Elena2015-08-21 19:19:55
1C-Bitrix
Elena, 2015-08-21 19:19:55

How to insert a photo from another Bitrix infoblock?

It is not possible to add the output of a property of type "anchor to item" with the name UF_TOVAR to the "Item detail" template. Link to another infoblock ID=11, MORE_PHOTO file type property.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Maksimenko, 2015-08-25
@olegprof

How are you doing?

E
Elena, 2015-08-25
@Kelly_V

according to example 1 dev.1c-bitrix.ru/api_help/iblock/classes/ciblockel...
<?
CModule::IncludeModule("iblock");
$arSelect = Array("ID", "NAME", "PREVIEW_PICTURE");
$arFilter = Array("IBLOCK_ID"=>10, "ACTIVE"=>"Y", "PROPERTY_UF_TOVAR"=>11);
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>3), $arSelect);
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
echo '';
print_r($arFields);
echo '';
}
?>
doesn't work at all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question