M
M
malayamarisha2020-06-19 07:47:33
1C-Bitrix
malayamarisha, 2020-06-19 07:47:33

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
                ); ?>

But the search bar is not displayed.
Tell me, please, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2020-06-19
@Tomio

As options:
1. You inserted the search component in the wrong menu template
2. The menu is usually cached, try clearing the cache

G
Gosha Mann, 2014-09-01
@IgorMann

Found a solution. Run chrome with --high-dpi-support=1 --force-device-scale-factor=1
Chrome is poor, don't upgrade.

V
Vit, 2014-09-01
@fornit1917

They say in version 37 there is a new rendering of fonts. It can be turned off. Try this tip, maybe it will help habrahabr.ru/company/google/blog/234701/#comment_7...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question