A
A
Alexander2016-12-11 21:24:46
1C-Bitrix
Alexander, 2016-12-11 21:24:46

How to display a smart filter in two places on a web page?

It is necessary to solve the problem with a smart filter! It is necessary to break the properties of a smart filter into two blocks i.e. part of the properties should be displayed in the left block of the web page, and the other part in the top.
How such a filter should look like: joxi.ru/p27W655uoNERE2
An example of implementing a similar filter on a working site: www.luxair.ru/catalog/section.php?is_filter=1&CATE...
Tell me how best to do this, call the “smart filter” component twice ” in different parts of the page, because it can be done somehow differently? And how to make these filters interact with each other and form the CNC of a smart filter?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita, 2016-12-11
@inviziblll

well, in general, in the example that you threw off in the smart filter, there is a price, only it is hidden ( screen ), and the slider changes the value in the original field to its change, and that's it, simple and efficient.
This is the standard solution for your problem.

R
Roman Gritsuk, 2017-01-06
@winer

Alternatively, use deferred functions.
For example, in the template of a smart filter component, you make the output of both blocks only by wrapping them in

<? $this->SetViewTarget("filter1");?>
           //Код блока 1
<? $this->EndViewTarget();?> 
<? $this->SetViewTarget("filter2");?>
           //Код блока 2
<? $this->EndViewTarget();?>

And where necessary, for example, in section.php of a complex catalog component, display these blocks like this:
<? $APPLICATION->ShowViewContent('filter1');?>
<!--какой то код и вертска-->
<? $APPLICATION->ShowViewContent('filter2');?>

S
Sergey Vinogradov, 2016-12-12
@vinogadovsergey

Good question, I have not found such modules almost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question