Answer the question
In order to leave comments, you need to log in
Why doesn't the menu see the $aMenuLinks array?
For two sites (multi-site on different domains), the top-type menu should contain different names of links and their values. But on the second site, the values are the same as on the first site, although there is a separate $aMenuLinks array for it, located in the root of the site. What could be the reason? If you edit through the visual part, then the links on the first site also change.
The contents of the .top.menu.php file
<?
$aMenuLinks = Array(
Array(
"О нас",
"/about/",
Array(),
Array("icon"=>"fa-comments"),
""
),
Array(
"Контакты",
"/contacts/",
Array(),
Array("icon"=>"fa-file-o"),
""
),
Array(
"Доставка",
"/delivery/",
Array(),
Array("icon"=>"fa-clock-o"),
""
)
);
?>
<?$APPLICATION->IncludeComponent(
"bitrix:menu",
"big_horizontal_menu",
Array(
"ROOT_MENU_TYPE" => "top",
"MENU_CACHE_TYPE" => "N",
"MENU_CACHE_TIME" => "3600",
"MENU_CACHE_USE_GROUPS" => "Y",
"MENU_CACHE_GET_VARS" => array(),
"MAX_LEVEL" => "1",
"CHILD_MENU_TYPE" => "left",
"USE_EXT" => "N",
"DELAY" => "N",
"ALLOW_MULTI_SELECT" => "N"
),
false
);?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question