.parameters.php
1.51 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
if(!CModule::IncludeModule("iblock"))
return;
$arTypesEx = CIBlockParameters::GetIBlockTypes(Array("-"=>" "));
$arIBlocks=Array();
$db_iblock = CIBlock::GetList(Array("SORT"=>"ASC"), Array("SITE_ID"=>$_REQUEST["site"], "TYPE" => ($arCurrentValues["IBLOCK_TYPE"]!="-"?$arCurrentValues["IBLOCK_TYPE"]:"")));
while($arRes = $db_iblock->Fetch()) {
$arIBlocks[$arRes["ID"]] = $arRes["NAME"];
}
$arComponentParameters = array(
"GROUPS" => array(
),
"PARAMETERS" => array(
"IBLOCK_TYPE" => Array(
"PARENT" => "BASE",
"NAME" => "IBLOCK_TYPE",
"TYPE" => "LIST",
"VALUES" => $arTypesEx,
"DEFAULT" => "news",
"REFRESH" => "Y",
),
"IBLOCK_ID" => Array(
"PARENT" => "BASE",
"NAME" => "IBLOCK_ID",
"TYPE" => "LIST",
"VALUES" => $arIBlocks,
"DEFAULT" => '={$_REQUEST["ID"]}',
"ADDITIONAL_VALUES" => "Y",
"REFRESH" => "Y",
),
"ITEMS_LIMIT" => Array(
"PARENT" => "BASE",
"NAME" => "ITEMS_LIMIT",
"TYPE" => "STRING",
"DEFAULT" => "10",
),
"AJAX_MODE" => array(),
"VARIABLE_ALIASES" => array(
"ELEMENT_ID" => array(
"NAME" => "ELEMENT_ID",
"DEFAULT" => "ELEMENT_ID",
),
),
"SEF_MODE" => array(
"list" => array(
"NAME" => "LIST PAGE",
"DEFAULT" => "/",
"VARIABLES" => array()
),
"detail" => array(
"NAME" => "DETAIL PAGE",
"DEFAULT" => "/#ELEMENT_ID#/",
"VARIABLES" => array("ELEMENT_ID")
),
),
),
);
?>