|
|
Ok!
|
|
|
Ok!
|
|---|---|---|---|---|
| 238 | "SECTION_URL" => $arResult["FOLDER"].$arResult["URL_TEMPLATES"]["section"], | bitrix, catalog.section.list | 500 | Путь секции для catalog.section.list |
| 236 | //ADD SECTION CANONICAL URL
$canonicalScheme = CMain::IsHTTPS() ? "https" : "http";
$APPLICATION->AddHeadString('<link rel="canonical" href="' . $canonicalScheme . '://' . SITE_SERVER_NAME . $arCurSection["PATH"][$arCurSection["ID"]]["SECTION_PAGE_URL"] . '" />', true); | bitrix, section | 9008 | ADD SECTION CANONICAL URL |
| 76 | <?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
use BitrixIblock;
$sectionsID = array();
foreach ($arResult["ITEMS"] as $arItem) {
if ($arItem["IBLOCK_SECTION_ID"]) {
$sectionsID[] = $arItem["IBLOCK_SECTION_ID"];
}
}
$sectionsID = array_unique($sectionsID);
$result = IblockSectionTable::getList(array(
"select" => array(
"ID",
"NAME",
),
"filter" => array(
"ID" => $sectionsID,
"IBLOCK_ID" => $arResult["IBLOCK_ID"],
),
));
$arResult["SECTIONS"] = array();
while ($row = $result->fetch()) {
$arResult["SECTIONS"][$row["ID"]] = $row;
}
| sections, bitrix, sections by id | 120 | Выбор секций каталога Битрикс по ID элемента |