Easier as in this "simple" CMS is the usual tree menu.

On the answer to the question did so but does not work

<?$APPLICATION->IncludeComponent( "bitrix:menu", "top-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" => "2", "CHILD_MENU_TYPE" => "dopmenu", "USE_EXT" => "N", "DELAY" => "N", "ALLOW_MULTI_SELECT" => "N" ), false );?> 

    2 answers 2

    Let's say you have a top-level "top" menu and a "left" section menu — the standard configuration.
    Create a menu component on the desired page, select a multi-level template (for example, horizontal_multilevel), set “menu type for the top level” - top, menu type for the other levels - “left”. choose the level of nesting - 2.
    Create a top menu at the root of the site. Let's say you have an item about the company in which you need to create a submenu. you write the address in the menu to it, for example "/ about /" - it is obligatory with a slash on the end.
    in the folder / about / create a menu of type left, fill it.
    everything. sub items in about will be displayed in the menu on all pages of the site.
    can you see everything is simple =)

    In general, the riddle is solved, somewhat painfully, but here's the answer Actually the code

     <?$APPLICATION->IncludeComponent( "bitrix:menu", "tree", 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" => "2", "CHILD_MENU_TYPE" => "dopmenu", "USE_EXT" => "Y", "DELAY" => "N", "ALLOW_MULTI_SELECT" => "N", "COMPONENT_TEMPLATE" => "tree" ) 

    );?>

    It can be obtained by strange manipulations, but without a sub menu, then with our hands we enter a submenu and there is half the trouble, the menu remains to be opened