Real_Fermer
@Real_Fermer
Программист PHP

Как настроить ЧПУ catalog.section?

Комплексный компонент NEWS - выводит список акций. На деталке акции - список товаров из акции catalog.section
есть фильтр по категориям товаров. при примении фильтр получается такой URL
/customers/promo/domashniy-bbq/?type-of-product=product&type-of-pivo=pivo
Как настроить ЧПУ чтобы URL получился вида
/customers/promo/domashniy-bbq/product/pivo
product и pivo =section_name
$APPLICATION->IncludeComponent(
                                    "bitrix:catalog.section",
                                    ".default",
                                    array(
                                        "GTM_PAGE_TYPE"                   => "articles",
                                        "ACTION_VARIABLE"                 => "action",
                                        "ADD_PROPERTIES_TO_BASKET"        => "Y",
                                        "ADD_SECTIONS_CHAIN"              => "N",
                                        "AJAX_MODE"                       => "N",
                                        "AJAX_OPTION_ADDITIONAL"          => "",
                                        "AJAX_OPTION_HISTORY"             => "N",
                                        "AJAX_OPTION_JUMP"                => "N",
                                        "AJAX_OPTION_STYLE"               => "Y",
                                        "BACKGROUND_IMAGE"                => "-",
                                        "BASKET_URL"                      => "/personal/basket.php",
                                        "BROWSER_TITLE"                   => "-",
                                        "CACHE_FILTER"                    => "N",
                                        "CACHE_GROUPS"                    => "N",
                                        "CACHE_TIME"                      => "36000000",
                                        "CACHE_TYPE"                      => "A",
                                        "CONVERT_CURRENCY"                => "N",
                                        "DETAIL_URL"                      => "",
                                        "DISABLE_INIT_JS_IN_COMPONENT"    => "N",
                                        "DISPLAY_BOTTOM_PAGER"            => "Y",
                                        "DISPLAY_TOP_PAGER"               => "N",
                                        "ELEMENT_SORT_FIELD"              => ($arParams["ELEMENT_SORT_FIELD"] == 'price') ? $priceBitrixName : $arParams["ELEMENT_SORT_FIELD"],
                                        "ELEMENT_SORT_ORDER"              => $arParams["ELEMENT_SORT_ORDER"],
                                        "ELEMENT_SORT_FIELD2"             => "name",
                                        "ELEMENT_SORT_ORDER2"             => "asc",
                                        "FILTER_NAME"                     => "promoProductsFilter",
                                        "HIDE_NOT_AVAILABLE"              => "N",
                                        "IBLOCK_ID"                       => IBLOCK_ID_catalog,
                                        "IBLOCK_TYPE"                     => "catalog",
                                        "INCLUDE_SUBSECTIONS"             => "Y",
                                        "LINE_ELEMENT_COUNT"              => "3",
                                        "MESSAGE_404"                     => "",
                                        "META_DESCRIPTION"                => "-",
                                        "META_KEYWORDS"                   => "-",
                                        "OFFERS_LIMIT"                    => "5",
                                        "PAGER_BASE_LINK_ENABLE"          => "N",
                                        "PAGER_DESC_NUMBERING"            => "N",
                                        "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
                                        "PAGER_SHOW_ALL"                  => "N",
                                        "PAGER_SHOW_ALWAYS"               => "N",
                                        "PAGER_TEMPLATE"                  => "show-more-promo",
                                        "PAGER_TITLE"                     => "Товары",
                                        "PAGE_ELEMENT_COUNT"              => "6",
                                        "PARTIAL_PRODUCT_PROPERTIES"      => "N",
                                        "PRICE_CODE"                      => array(
                                            0 => REGION_PRICE,
                                        ),
                                        "PRICE_VAT_INCLUDE"               => "Y",
                                        "PRODUCT_ID_VARIABLE"             => "id",
                                        "PRODUCT_PROPERTIES"              => array(),
                                        "PRODUCT_PROPS_VARIABLE"          => "prop",
                                        "PRODUCT_QUANTITY_VARIABLE"       => "",
                                        "PROPERTY_CODE"                   => array(
                                            0  => "TYPE",
                                            1  => "COLOR",
                                            2  => "SUGAR",
                                            3  => "COUNTRY",
                                            4  => "ALCO",
                                            5  => "BLOG_POST_ID",
                                            6  => "ARTICLE",
                                            7  => "EXTRACTION",
                                            8  => "GASTRONOMIC_LINE",
                                            9  => "BLOG_COMMENTS_CNT",
                                            10 => "RUSSIAN_NAME",
                                            11 => "TEXTS_ABOUT_THIS",
                                            12 => "SET_DESCRIPTION",
                                            13 => "PRODUCER",
                                            14 => "PRODUCTION",
                                            15 => "AVAILABILITY",
                                            16 => "FACTS",
                                            17 => "YEAR",
                                            18 => "GRAPE",
                                            19 => "VALUE",
                                            20 => "RP_RATING",
                                            21 => "WS_RATING",
                                            22 => "COMPOSITION",
                                            23 => "SET_BACKGROUND",
                                            24 => "EXCLUSIVE",
                                        ),
                                        "SECTION_CODE"                    => "",
                                        "SECTION_ID"                      => "",
                                        "SECTION_ID_VARIABLE"             => "SECTION_ID",
                                        "SECTION_URL"                     => "",
                                        "SECTION_USER_FIELDS"             => array(
                                            0 => "",
                                            1 => "",
                                        ),
                                        "SEF_MODE"                        => "N",
                                        "SET_BROWSER_TITLE"               => "Y",
                                        "SET_LAST_MODIFIED"               => "N",
                                        "SET_META_DESCRIPTION"            => "Y",
                                        "SET_META_KEYWORDS"               => "Y",
                                        "SET_STATUS_404"                  => "N",
                                        "SET_TITLE"                       => "Y",
                                        "SHOW_404"                        => "N",
                                        "SHOW_ALL_WO_SECTION"             => "Y",
                                        "SHOW_PRICE_COUNT"                => "1",
                                        "USE_MAIN_ELEMENT_SECTION"        => "N",
                                        "USE_PRICE_COUNT"                 => "N",
                                        "USE_PRODUCT_QUANTITY"            => "N",
                                        "COMPONENT_TEMPLATE"              => ".default",
                                        "REGION_ID"                       => GeoServices::getRegionElementIDStatic(),
                                        "PRODUCTS_BY_ACTIONS"             => 'Y',
                                        'COMPOSITE_FRAME_MODE'            => 'A',
                                        'COMPOSITE_FRAME_TYPE'            => 'DYNAMIC_WITH_STUB_LOADING',
                                        "SHOP_ID"                         => Shop::getCurrentXmlID(),
                                    ),
                                    false
                                );
  • Вопрос задан
  • 70 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы