.additional.menu.php
898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?
$aMenuLinks = Array(
Array(
"Конкурсы",
"/archive/contests/",
Array(),
Array(),
""
),
Array(
"Фестивали",
"/archive/festivals/",
Array(),
Array(),
""
),
Array(
"Туры",
"/archive/tours/",
Array(),
Array(),
""
)
);
?>
<?
global $APPLICATION;
$aMenuLinksExt=$APPLICATION->IncludeComponent("bitrix:menu.sections", "", array(
"IS_SEF" => "Y",
"SEF_BASE_URL" => "/catalog/", //директория каталога у вас
"SECTION_PAGE_URL" => "#SECTION_ID#/",
"DETAIL_PAGE_URL" => "#SECTION_ID#/#ELEMENT_ID#",
"IBLOCK_TYPE" => "FESTIVALS_AND_CONTESTS", //название инфоблока
"IBLOCK_ID" => "11", //ID инфоблока
"DEPTH_LEVEL" => "4",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "3600"
),
false
);
//echo"<pre>";print_r($aMenuLinksExt);echo"</pre>";
$aMenuLinks = array_merge($aMenuLinks, $aMenuLinksExt);
?>