Вывожу вёрстку:
foreach ($arResult['SECTIONS'] as $key => $arSection)
{
$file = CFile::GetPath($arSection["UF_ICO_TV"]);
?>
<div class="tests__item tests-item">
<a href="<?=$arSection["SECTION_PAGE_URL"]; ?>">
<div class="tests-item__image">
<img src="<?=$arSection['PICTURE']['SRC']?>" alt="">
</div>
</a>
<div class="tests-item__wrapper">
<div class="tests-item__content">
<div class="tests-item__title">
<?= $arSection["NAME"] ?>
</div>
<a href="<?=$arSection["SECTION_PAGE_URL"]; ?>" class="btn _radius">
Начать
</a>
</div>
<div class="tests-item__content-image">
<img class="tests-item__channel-image" src="<?=$file?>" alt="">
</div>
</div>
</div>
<?php
}
Вызов компонента catalog:
<?$APPLICATION->IncludeComponent(
"bitrix:catalog",
"new_tests",
Array(
"COMPONENT_TEMPLATE" => "new_tests",
"IBLOCK_TYPE" => "Tests",
"IBLOCK_ID" => "16",
"SEF_MODE" => "Y",
"AJAX_MODE" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_ADDITIONAL" => "",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "36000000",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => "Y",
"SET_STATUS_404" => "N",
"SET_TITLE" => "Y",
"ADD_SECTIONS_CHAIN" => "N",
"ADD_ELEMENT_CHAIN" => "N",
"USE_ELEMENT_COUNTER" => "N",
"USE_FILTER" => "N",
"ACTION_VARIABLE" => "action",
"PRODUCT_ID_VARIABLE" => "id",
"USE_COMPARE" => "N",
"PRICE_CODE" => array(),
"USE_PRICE_COUNT" => "N",
"SHOW_PRICE_COUNT" => "1",
"PRICE_VAT_INCLUDE" => "Y",
"PRICE_VAT_SHOW_VALUE" => "N",
"BASKET_URL" => "/personal/basket.php",
"USE_PRODUCT_QUANTITY" => "N",
"PRODUCT_QUANTITY_VARIABLE" => "",
"ADD_PROPERTIES_TO_BASKET" => "Y",
"PRODUCT_PROPS_VARIABLE" => "prop",
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"PRODUCT_PROPERTIES" => array(),
"SHOW_TOP_ELEMENTS" => "N",
"TOP_ELEMENT_COUNT" => "9",
"TOP_LINE_ELEMENT_COUNT" => "3",
"TOP_ELEMENT_SORT_FIELD" => "sort",
"TOP_ELEMENT_SORT_ORDER" => "asc",
"TOP_ELEMENT_SORT_FIELD2" => "id",
"TOP_ELEMENT_SORT_ORDER2" => "desc",
"TOP_PROPERTY_CODE" => array(0=>"",1=>"",),
"SECTION_COUNT_ELEMENTS" => "N",
"SECTION_TOP_DEPTH" => "1",
"PAGE_ELEMENT_COUNT" => "1000000",
"LINE_ELEMENT_COUNT" => "1",
"ELEMENT_SORT_FIELD" => "PROPERTY_RESPONSE_ORDER",
"ELEMENT_SORT_ORDER" => "asc",
"ELEMENT_SORT_FIELD2" => "id",
"ELEMENT_SORT_ORDER2" => "desc",
"LIST_PROPERTY_CODE" => array("RESPONSE_ORDER",""),
"INCLUDE_SUBSECTIONS" => "Y",
"LIST_META_KEYWORDS" => "-",
"LIST_META_DESCRIPTION" => "-",
"LIST_BROWSER_TITLE" => "-",
"DETAIL_PROPERTY_CODE" => array("",""),
"DETAIL_META_KEYWORDS" => "-",
"DETAIL_META_DESCRIPTION" => "-",
"DETAIL_BROWSER_TITLE" => "-",
"DETAIL_SET_CANONICAL_URL" => "N",
"SECTION_ID_VARIABLE" => "SECTION_ID",
"DETAIL_CHECK_SECTION_ID_VARIABLE" => "N",
"SHOW_DEACTIVATED" => "N",
"LINK_IBLOCK_TYPE" => "",
"LINK_IBLOCK_ID" => "",
"LINK_PROPERTY_SID" => "",
"LINK_ELEMENTS_URL" => "link.php?PARENT_ELEMENT_ID=#ELEMENT_ID#",
"USE_STORE" => "N",
"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" => "N",
"SEF_FOLDER" => "/new-tests/",
"VARIABLE_ALIASES" => Array("sections"=>Array(),"section"=>Array(),"element"=>Array(),"compare"=>Array("ACTION_CODE"=>"action"),),
"SEF_URL_TEMPLATES" => Array("sections"=>"","section"=>"#SECTION_CODE#/","element"=>"#SECTION_CODE#/#ELEMENT_CODE#/","compare"=>"compare.php?action=#ACTION_CODE#"),
"VARIABLE_ALIASES" => Array(
"sections" => Array(),
"section" => Array(),
"element" => Array(),
"compare" => Array(
"ACTION_CODE" => "action"
),
)
)
);?>
Вызов catalog.section.list
<?$APPLICATION->IncludeComponent(
"bitrix:catalog.section.list",
"tests",
array(
"IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],
"IBLOCK_ID" => $arParams["IBLOCK_ID"],
"CACHE_TYPE" => $arParams["CACHE_TYPE"],
"CACHE_TIME" => $arParams["CACHE_TIME"],
"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],
"COUNT_ELEMENTS" => $arParams["SECTION_COUNT_ELEMENTS"],
"TOP_DEPTH" => $arParams["SECTION_TOP_DEPTH"],
"SECTION_URL" => $arResult["FOLDER"].$arResult["URL_TEMPLATES"]["section"],
"VIEW_MODE" => $arParams["SECTIONS_VIEW_MODE"],
"SHOW_PARENT_NAME" => $arParams["SECTIONS_SHOW_PARENT_NAME"],
"SECTION_USER_FIELDS" => array('UF_*'),
"HIDE_SECTION_NAME" => (isset($arParams["SECTIONS_HIDE_SECTION_NAME"]) ? $arParams["SECTIONS_HIDE_SECTION_NAME"] : "N"),
"ADD_SECTIONS_CHAIN" => (isset($arParams["ADD_SECTIONS_CHAIN"]) ? $arParams["ADD_SECTIONS_CHAIN"] : '')
),
$component,
array("HIDE_ICONS" => "Y")
);
?>
Как сделать чтобы на одной странице было например 5 разделов?