Skip to content

Instantly share code, notes, and snippets.

@niksamokhvalov
Created January 19, 2018 15:29
Show Gist options
  • Save niksamokhvalov/b6c3261c22785ec054ff24c60063c185 to your computer and use it in GitHub Desktop.
Save niksamokhvalov/b6c3261c22785ec054ff24c60063c185 to your computer and use it in GitHub Desktop.
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");?>
<?$APPLICATION->IncludeComponent(
"bbc:elements",
".default",
array(
"IBLOCK_TYPE" => "news",
"IBLOCK_ID" => "6",
"SORT_BY_1" => "SHOWS",
"SORT_ORDER_1" => "ASC",
"SORT_BY_2" => "SHOWS",
"SORT_ORDER_2" => "ASC",
"LIST_SELECT_FIELDS" => array(
0 => "ID",
1 => "CODE",
2 => "XML_ID",
3 => "NAME",
4 => "",
),
"LIST_SELECT_PROPS" => array(
0 => "",
1 => "FFFTRW",
2 => "SAFASFASF",
3 => "UUUUUU",
4 => "",
),
"LIST_DATE_FORMAT" => "d.m.Y",
"DETAIL_SELECT_FIELDS" => array(
0 => "ID",
1 => "CODE",
2 => "XML_ID",
3 => "NAME",
4 => "TAGS",
5 => "DETAIL_TEXT",
6 => "",
),
"DETAIL_SELECT_PROPS" => array(
0 => "",
1 => "FFFTRW",
2 => "WRQWT",
3 => "",
),
"DETAIL_DATE_FORMAT" => "d.m.Y",
"SEF_MODE" => "Y",
"SEF_FOLDER" => "/basis/2.0/",
"CACHE_GROUPS" => "N",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "360000",
"SET_404" => "Y",
"CHECK_PERMISSIONS" => "N",
"SET_SEO_TAGS" => "Y",
"PAGER_SAVE_SESSION" => "N",
"ELEMENTS_COUNT" => "10",
"PAGER_TEMPLATE" => ".default",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => "Y",
"PAGER_TITLE" => "",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "Y",
"LIST_RESULT_PROCESSING_MODE" => "DEFAULT",
"DETAIL_RESULT_PROCESSING_MODE" => "DEFAULT",
"USE_SEARCH" => "Y",
"INCLUDE_SUBSECTIONS" => "Y",
"EX_FILTER_NAME" => "",
"USE_AJAX" => "Y",
"AJAX_TYPE" => "DEFAULT",
"AJAX_HEAD_RELOAD" => "N",
"AJAX_TEMPLATE_PAGE" => "",
"ADD_IBLOCK_CHAIN" => "N",
"ADD_SECTIONS_CHAIN" => "Y",
"ADD_ELEMENT_CHAIN" => "Y",
"COMPONENT_TEMPLATE" => ".default",
"AJAX_COMPONENT_ID" => "",
"DETAIL_OG_TAGS_TITLE" => "0",
"DETAIL_OG_TAGS_DESCRIPTION" => "0",
"DETAIL_OG_TAGS_IMAGE" => "0",
"DETAIL_OG_TAGS_URL" => "0",
"SEF_URL_TEMPLATES" => array(
"index" => "",
"section" => "#SECTION_ID#/",
"detail" => "#SECTION_ID#/#ELEMENT_ID#/",
)
),
false
);?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment