Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Меню с нормальным кешированием, без учёта URL страницы.
<?$APPLICATION->IncludeComponent(
"bitrix:menu",
".default",
array(
"COMPONENT_TEMPLATE" => ".default",
"ROOT_MENU_TYPE" => "top",
"MENU_CACHE_TYPE" => "A",
"MENU_CACHE_TIME" => "3600",
"MENU_CACHE_USE_GROUPS" => "N",
"MENU_CACHE_GET_VARS" => array(
),
"CACHE_SELECTED_ITEMS" => "N", <--- Вот этот параметр.
"MAX_LEVEL" => "1",
"CHILD_MENU_TYPE" => "left",
"USE_EXT" => "N",
"DELAY" => "N",
"ALLOW_MULTI_SELECT" => "N"
),
false
);?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.