Answer the question
In order to leave comments, you need to log in
How to add a filter from a component to header.php?
Hello, on the detail page of an element, you need to call the "smart filter" component and display it in the site header (it turns out you need to display it in the site template, and not in the component template). How can I do that?
Answer the question
In order to leave comments, you need to log in
More or less like this:
if($APPLICATION->GetCurPage(false) == '/catalog/detail.php'){
/*тут код вызова компонента фильтра*/
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question