P
P
photosho2019-06-19 11:44:19
1C-Bitrix
photosho, 2019-06-19 11:44:19

How to get the list of sections in CIBlockElement::getList?

I need to get a list of infoblock elements (by a certain filter, CIBlockElement::getList()) with a list of all sections that each element belongs to. The "IBLOCK_SECTION_ID" parameter returns only one section. How can i do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
smilingcheater, 2019-06-19
@photosho

If I understood you correctly, then this can be obtained by calling a separate CIblockSection::GetElementGroups() method, passing it an array of element IDs for which sections should be selected. Documentation - https://dev.1c-bitrix.ru/api_help/iblock/classes/c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question