A
A
Alexander2017-05-24 09:46:45
PHP
Alexander, 2017-05-24 09:46:45

Request for all elements of a section in Bitrix?

It is necessary to pull out elements from the section and all its subsections by request and perform actions with them.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2017-05-24
@Rema1ns

You can get a list of mixed list of all sections and elements:

//CIBlockResult
CIBlockSection::GetMixedList(
 array arOrder = Array("SORT"=>"ASC"),
 array arFilter = Array(), // тут надо указать родителя 
 bool bIncCnt = false,
 array arSelectedFields = false
);

read here

L
likenoother, 2017-05-26
@likenoother

If the elements are needed directly, why is the usual GetList with SECTION_ID and INCLUDE_SUBSECTIONS in arFilter not suitable?
https://dev.1c-bitrix.ru/api_help/iblock/classes/c...
Shl. Sorry, didn't see the discussion in the comments to the answer above, where the same solution is suggested.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question