Answer the question
In order to leave comments, you need to log in
How to properly display UF-property in Bitrix?
Good afternoon!
The section with ID 65 has a custom property UF_KRATKO.
First, I get $ar_res by ID:
$res = CIBlockSection::GetByID(65); $ar_res=$res->GetNext();
'DESCRIPTION'] =$ar_res[
'UF_KRATKO'] =$ar_res[
'~UF_KRATKO'] =$ar_res[
Answer the question
In order to leave comments, you need to log in
The problem is that the documentation must be carefully read, it is written that this method
Returns a CIBlockResult object. Custom fields are not returned .
to display custom properties, IBLOCK_ID must be passed and the code of the required properties UF_XXX must be passed to arSelect. If you need to display all user properties, then UF_* must be passed to arSelect.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question