V
V
Vlad Gromov2019-03-26 20:37:19
1C-Bitrix
Vlad Gromov, 2019-03-26 20:37:19

How to display a "smart filter" immediately upon opening the page?

Comrades, please help!
There is a "Catalog" of Bitrix with a list of personnel, which I display with a "smart filter", but it does not appear immediately.
5c9a623bb212b863007531.jpeg
Initially, it is not displayed on the test.php page, when I click on the "red block" the path changes to "/test.php?SECTION_ID=1" and the "smart filter" I need appears.
5c9a62b756912270906271.jpeg
The problem is the following, I need the "smart filter" to appear immediately when going to test.php, and not when going to "/test.php?SECTION_ID=1".
How to implement this feature?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2019-03-26
@Vikkiners

In the standard template of the bitrix:catalog complex component, the smart filter component is included in the section_horizontal.php and section_vertical.php files, which in turn are responsible for displaying the section page.
When you visit /test.php, the complex component defines this page as a section list page (sections.php), which does not contain this component.
To make it appear on the section list page, you need to copy it there.
In order for it to work there, you will need to set the SHOW_ALL_WO_SECTION => Y parameter (and maybe SECTION_ID => 0, I don’t remember exactly)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question