I
I
Ivan Fotiev2015-10-13 11:32:25
PHP
Ivan Fotiev, 2015-10-13 11:32:25

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

1 answer(s)
D
Dmitry Novikov, 2015-10-13
@dmitriy_novikov

More or less like this:

if($APPLICATION->GetCurPage(false) == '/catalog/detail.php'){  
/*тут код вызова компонента фильтра*/ 
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question