S
S
Sergey Ivchenko2015-10-23 16:06:15
1C-Bitrix
Sergey Ivchenko, 2015-10-23 16:06:15

How to get a list of sections by element filter?

How can I get a list of sections by element filter using the Bitrix API?
There is a CIBlockSection::GetList() function. It has filtering by element PROPERTY :

CIBlockSection ::GetList(
  Array(),
  Array(
    'IBLOCK_ID' => $arParams['IBLOCK_ID'],
    'PROPERTY' => Array(
      '/*здесь символьный код свойства*/' => '/*Здесь значение этого свойства*/'
    )
  )
)

The problem is that in this case it is impossible to implement filtering by CATALOG_PRICE_1 and CATALOG_QUANTITY_1. You can't use complex filters either. Can you please tell me how to get a list of sections by an arbitrary filter of infoblock elements?
The CIBlockElement::GetList option with the IBLOCK_SECTION_ID grouping is out of the question, because you need to get a list of root sections.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BATALINE, 2015-12-16
@BATALINEru

If you need to get a list of sections to which the filtered selection of elements belongs, then most likely you will have to do this manually after selecting the elements.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question