There is a 2-level menu that consists of musical instruments, light and sound. Item musical instruments have their own points (guitars, wind). Tell me how to edit the nested menu items (change their order, change links)?
1 answer
Hello! If you use manual menu creation (without the item in the settings of the "Include files with the names of the type .type_menu.menu_ext.php" component)
That editing takes place either in the public part of the site in edit mode, or in the admin area in your case .left.menu.php file
And if these are information block sections and you want the menu to be automatically generated, you should enable the option "Include files with names like .type_menu.menu_ext.php" and in the file .left.menu_ext.php specify the symbol code of your information block with sections. Example:
<? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); global $APPLICATION; if (!function_exists("GetTreeRecursive")) //Include from main.map component { $aMenuLinksExt=$APPLICATION->IncludeComponent("bitrix:eshop.menu.sections", "", array( "IBLOCK_TYPE_ID" => "catalog", // Символьный код вашего Инфоблока "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000" ), false, Array('HIDE_ICONS' => 'Y') ); $aMenuLinks = array_merge($aMenuLinks, $aMenuLinksExt); } ?>
- the eshop.menu.sections component is not always present, not all of them put demo data - Andrei Berzhanin
|