Answer the question
In order to leave comments, you need to log in
How to place another component in the component template?
Good day!
It is necessary to place the search bar in the menu template.
In the menu template, I call the component:
<? $APPLICATION->IncludeComponent("bitrix:search.title", "search_title_new", Array(
"SHOW_INPUT" => "Y",
"INPUT_ID" => "title-search-input",
"CONTAINER_ID" => "title-search",
"PAGE" => "#SITE_DIR#search/index.php",
"NUM_CATEGORIES" => "1",
"TOP_COUNT" => "5",
"ORDER" => "date",
"USE_LANGUAGE_GUESS" => "Y",
"CHECK_DATES" => "N",
"SHOW_OTHERS" => "N",
"CATEGORY_0_TITLE" => "",
"CATEGORY_0" => "",
"COMPOSITE_FRAME_MODE" => "A",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"COMPONENT_TEMPLATE" => "search_title"
),
$component
); ?>
Answer the question
In order to leave comments, you need to log in
As options:
1. You inserted the search component in the wrong menu template
2. The menu is usually cached, try clearing the cache
Found a solution. Run chrome with --high-dpi-support=1 --force-device-scale-factor=1
Chrome is poor, don't upgrade.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question