Answer the question
In order to leave comments, you need to log in
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
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.
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();?>
<? $APPLICATION->ShowViewContent('filter1');?>
<!--какой то код и вертска-->
<? $APPLICATION->ShowViewContent('filter2');?>
Good question, I have not found such modules almost.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question