A
A
Andrey Eskov2018-04-25 21:30:02
1C-Bitrix
Andrey Eskov, 2018-04-25 21:30:02

How to determine the selected category in the catalog.section.list component?

Dear, tell me how to determine which category was chosen in order to reflect this in the template in the future?
Is defining the selected category via $APPLICATION->GetCurPage() and $arItem["SECTION_PAGE_URL"] the only option?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-04-25
@taurus2790

It is possible through $arParams['SECTION_ID]
In general, catalog.section.list is not a menu. Because it has caching, then the selection of the active section cannot be done without disabling it. It's better to use menu.section

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question