Guys, tell me how to display the information block section in the menu ?. To solve this problem, I used an information block catalog, in which there are sections (goods 1, goods 2). Then I created the sidebar menu and the .sidebar.menu_ext file in which I placed the following code

<? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); global $APPLICATION; $aMenuLinksExt=$APPLICATION->IncludeComponent("bitrix:menu.sections", "", array( "IS_SEF" => "Y", "SEF_BASE_URL" => "/catalog/", "SECTION_PAGE_URL" => "#SECTION_CODE_PATH#/", "DETAIL_PAGE_URL" => "#SECTION_CODE_PATH#/#SECTION_CODE#/", "IBLOCK_TYPE" => "catalog", "IBLOCK_ID" => "1", "DEPTH_LEVEL" => "4", "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000" ), false ); $aMenuLinks = array_merge($aMenuLinksExt, $aMenuLinks); ?> 

Then I chose the tree template, but then the next problem appears. Information block sections appear, but elements of this section do not appear, how to fix it?

  • With the help of regular components in any way, read the courses and documentation on 1C-Bitrix. You need to edit the component so that it receives the elements. Here they tell how to implement it. Look for similar questions first on the profile forums. - Nikolaj Sarry
  • primerchik would ........ - ChromeChrome
  • You need to combine the array obtained using menu.sections with the array obtained through CIBlockElement::GetList . Try it, it will not work, throw your code, we will look. - Nikolaj Sarry
  • @Nikolayarrah ideone.com/twzfnF gave an example of code, but here I get the resulting array first contains the section names and after the section elements, how to make sure that after each section the elements of each section are displayed - section elements 1 section 2 - elements of section 2 - ChromeChrome
  • modify the result_modifier.php or template.php component of the menu.sections component menu.sections that it CIBlockElement::GetList besides selecting sections. - Nikolaj Sarry

0