A
A
advancess2020-10-16 16:56:54
1C-Bitrix
advancess, 2020-10-16 16:56:54

How to display the "binding to element" Bitrix property?

Greetings. I've been struggling with a seemingly elementary task for a day now. How to display the binding property to the element in the standard "news list" component in the detailed news?
This code doesn't work

<?foreach($arResult["PROPERTIES"]["STATUS"]["VALUE"] as $analog):?>
<?$res = CIBlockElement::GetByID($analog);?> 
<?if($ar_res = $res->GetNext())?> 
<li><b><a href='<?=$ar_res["DETAIL_PAGE_URL"];?>'><?=$ar_res["NAME"];?></a></b></li>
<?endforeach;?>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question