A
A
Artem2016-07-11 14:38:07
1C-Bitrix
Artem, 2016-07-11 14:38:07

How to get the value of a custom property of an infoblock section?

I have created a custom field for infoblock sections - PAGEHEADER.
I set the value for the section.

How can I get its value?
Tried in different ways. Maybe I'm not doing it right. Please share your experience.

For example, I tried

$arOrder = array(
  "SORT"=>"ASC"
);
$arFilter = array(
  "IBLOCK_ID"=>"110"
);

$ar_result=CIBlockSection::GetList($arOrder, $arFilter, false, array('UF_PAGE_HEADER')); 
if($res=$ar_result->GetNext()){
  print_r($res);
};

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2016-07-13
@beardedman

Note No. 1: to display custom properties , IBLOCK_ID must be passed and the code of the required properties UF_XXX must be passed to arSelect.
dev.1c-bitrix.ru/api_help/iblock/classes/ciblockse...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question