Answer the question
In order to leave comments, you need to log in
How to display properties of a property in Bitrix?
Hello.
I need to Display properties of type binding to elements - set, these properties have their own properties.
<?
foreach($arResult["PROPERTIES"]["CALL"]["VALUE"] as $call)
{
$call = CIBlockElement::GetList(Array("SORT"=>"ASC"), Array("IBLOCK_ID"=>"4", "ID"=>$call),false, Array("ID", "IBLOCK_ID")); ;
while($ob = $сall->GetNextElement()){
$arFields = $ob->GetFields(); //тут поля Имя, превьюхи и тд
$arProps = $ob->GetProperties(); // тут свойства. Продолжительность, время и т.д
}
$arResult["CALLP"][] = $arProps;
$arResult["CALLF"][] = $arFields;
}
?>
<h2>Звонки</h2>
<?foreach($arResult["CALLP"] as $arItem):?> //так свойства
<?foreach($arResult["CALLF"] as $arItems):?> //без него не выыодится имена
<?=$arItems["NAME"];?> //вывод имени звонка
<?=$arItem["LONG"]["VALUE"];?> //вывод продолжительности звонка
<?endforeach?>
<?endforeach?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question