Hello! Can you please tell me how to get the XML_ID value from a custom property?
I created an information block, then I create sections in it, since these sections will not only store elements but also certain values. It became necessary to create a new user field that stores certain values. Using the code below, we got the ID of the list values. And how to get the value of XML_ID?
There used to be a similar question , but there the question referred to information blocks, and here it is a user property.
CModule::IncludeModule('iblock'); $arSelect = Array('ID', 'NAME', 'UF_TF'); $arFilter = Array('IBLOCK_ID'=>$iblock, 'ACTIVE'=>'Y', 'GLOBAL_ACTIVE'=>'Y'); $res = CIBlockSection::GetList(Array('SORT'=>'ASC'), $arFilter, true, $arSelect); while($ob = $res->GetNext()) { ?> <div> <?=$ob['UF_TF'] ?> </div> <?}?>
In nesting screenshots can help in understanding the issue. Thank you in advance.