...Человеческий поиск в разработке...
- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/url/shopbuilder.php
- Класс: BitrixCatalogUrlShopBuilder
- Вызов: ShopBuilder::initUrlTemplates
protected function initUrlTemplates(): void { $this->urlTemplates[self::PAGE_SECTION_LIST] = '/shop/catalog/#IBLOCK_ID#/section/#PARENT_ID#/' . '?#ADDITIONAL_PARAMETERS#' ; $this->urlTemplates[self::PAGE_ELEMENT_LIST] = '/shop/catalog/#IBLOCK_ID#/' ; $this->urlTemplates[self::PAGE_SECTION_DETAIL] = '#PATH_PREFIX#' . 'cat_section_edit/' . '?#BASE_PARAMS#' . '&ID=#ENTITY_ID#' . '&publicSidePanel=Y' . '#ADDITIONAL_PARAMETERS#' ; $this->urlTemplates[self::PAGE_SECTION_COPY] = $this->urlTemplates[self::PAGE_SECTION_DETAIL] . $this->getCopyAction() ; $this->urlTemplates[self::PAGE_SECTION_SAVE] = '#PATH_PREFIX#' . 'cat_section_edit.php' . '?#BASE_PARAMS#' . '#ADDITIONAL_PARAMETERS#' ; $this->urlTemplates[self::PAGE_SECTION_SEARCH] = '/bitrix/tools/iblock/section_search.php' . '?#LANGUAGE#' . '#ADDITIONAL_PARAMETERS#' ; if ($this->isUiCatalog()) { $this->urlTemplates[self::PAGE_ELEMENT_DETAIL] = self::PATH_DETAIL_CARD_PREFIX . '#IBLOCK_ID#/product/#ENTITY_ID#/' . '?#ADDITIONAL_PARAMETERS#' ; $this->urlTemplates[self::PAGE_ELEMENT_COPY] = self::PATH_DETAIL_CARD_PREFIX . '#IBLOCK_ID#/product/0/copy/#ENTITY_ID#/' ; $this->urlTemplates[self::PAGE_ELEMENT_SAVE] = $this->urlTemplates[self::PAGE_ELEMENT_DETAIL]; $this->urlTemplates[self::PAGE_OFFER_DETAIL] = '/shop/catalog/' . '#PRODUCT_IBLOCK_ID#/product/#PRODUCT_ID#/' . 'variation/#ENTITY_ID#/' ; } else { $this->urlTemplates[self::PAGE_ELEMENT_DETAIL] = '#PATH_PREFIX#' . 'cat_product_edit/' . '?#BASE_PARAMS#' . '&ID=#ENTITY_ID#' . '&publicSidePanel=Y' . '#ADDITIONAL_PARAMETERS#' ; $this->urlTemplates[self::PAGE_ELEMENT_COPY] = $this->urlTemplates[self::PAGE_ELEMENT_DETAIL] . $this->getCopyAction() ; $this->urlTemplates[self::PAGE_ELEMENT_SAVE] = '#PATH_PREFIX#' . 'cat_product_edit.php' . '?#BASE_PARAMS#' . '#ADDITIONAL_PARAMETERS#' ; $this->urlTemplates[self::PAGE_OFFER_DETAIL] = $this->urlTemplates[self::PAGE_ELEMENT_DETAIL]; } $this->urlTemplates[self::PAGE_ELEMENT_SEARCH] = '/bitrix/tools/iblock/element_search.php' . '?#LANGUAGE#' . '#ADDITIONAL_PARAMETERS#' ; $this->urlTemplates[self::PAGE_CATALOG_SEO] = self::PATH_DETAIL_CARD_PREFIX . '#IBLOCK_ID#/seo/'; $this->urlTemplates[self::PAGE_ELEMENT_SEO] = self::PATH_DETAIL_CARD_PREFIX . '#IBLOCK_ID#/seo/product/#PRODUCT_ID#/'; $this->urlTemplates[self::PAGE_SECTION_SEO] = self::PATH_DETAIL_CARD_PREFIX . '#IBLOCK_ID#/seo/section/#SECTION_ID#/'; }