Answer the question
In order to leave comments, you need to log in
How to display a property of type "Binding to element" with a picture?
Good afternoon! There are 2 infoblocks: "Polyclinics" and "Doctors". In each, a property of type "Binding to elements" is created.
In a detailed view of the polyclinic, the doctors were brought out https://kolpino.ru/polikliniki/71/ .
How to make doctors have photos and positions?
Create in template folder result_modifier.php?
What code should I add to result_modifier.php and template file?
Answer the question
In order to leave comments, you need to log in
Non-Multiple "Bind to Element" Property
<? if ($arResult["PROPERTIES"]["Символьныйкодсвойстватекущегоэлемента"]["VALUE"]) {?>
<?
$arPROP = GetIBlockElement($arResult["PROPERTIES"]["Символьныйкодсвойстватекущегоэлемента"]["VALUE"]);
print_r($arPROP["PROPERTIES"]["Символьныйкодсвойствапривязанногоэлемента"]);
?>
<?}?>
juli_zzz , well, look at
$arResult['DISPLAY_PROPERTIES']['VRACHI']['LINK_ELEMENT_VALUE']
[LINK_ELEMENT_VALUE] => Array
(
[160297] => Array
(
[ID] => 160297
[IBLOCK_ID] => 30
[NAME] => Магомеднабиев Тагир Шарапудинович
[DETAIL_PAGE_URL] => /vrachi/detail.php?ID=160297
[PREVIEW_PICTURE] => 12009862
[DETAIL_PICTURE] => 12009863
[SORT] => 500
[LANG_DIR] => /
[CODE] =>
[EXTERNAL_ID] => 160297
[IBLOCK_SECTION_ID] =>
[IBLOCK_TYPE_ID] => catalog
[IBLOCK_CODE] => vrachi
[IBLOCK_EXTERNAL_ID] =>
[LID] => s1
)
)
CFile::GetPath
https://dev.1c-bitrix.ru/api_help/main/reference/c...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question