Q
Q
qlr2015-06-23 10:32:34
CMS
qlr, 2015-06-23 10:32:34

How to get Bitrix subsection id?

It is necessary to check in the template whether the product belongs to a subsection. The problem is that products belong to both the main section and the subsection.
$arResult['IBLOCK_SECTION_ID']
returns the ID of the main partition.
Is there some function to check if a directory object belongs to a particular partition?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Bezrukov, 2015-07-02
@bezrukovPS

Good afternoon.
There is a function to get the sections to which the element is attached
dev.1c-bitrix.ru/api_help/iblock/classes/ciblockel...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question