Отредактируйте страницу раздела
[spoiler]
Примерный код вызова:
<?$APPLICATION->IncludeComponent( "maxyss:hl_brand.filter", ".default", Array( "BLOCK_ID" => "2", "CACHE_TIME" => "360000", "CACHE_TYPE" => "A", "CHECK_PERMISSIONS" => "N", "COMPONENT_TEMPLATE" => ".default", "COMPOSITE_FRAME_MODE" => "A", "COMPOSITE_FRAME_TYPE" => "AUTO", "DETAIL_URL" => "", "FIELD_CODE" => "UF_NAME", "FILTER_NAME" => "brandFilter", "SORT_BY1" => "UF_NAME", "SORT_ORDER1" => "ASC" ) );?><?$APPLICATION->IncludeComponent( "maxyss:hl_brand.list", ".default", Array( "BLOCK_ID" => "2", "CACHE_TIME" => "360000", "CACHE_TYPE" => "A", "CHECK_PERMISSIONS" => "N", "COMPONENT_TEMPLATE" => ".default", "DETAIL_URL" => "/brand/detail.php", "DISPLAY_BOTTOM_PAGER" => "Y", "DISPLAY_TOP_PAGER" => "N", "FIELD_CODE" => array(0=>"UF_FILE",1=>"UF_DESCRIPTION",2=>"",), "FILTER_NAME" => "brandFilter", "PAGEN_ID" => "", "PAGER_SHOW_ALL" => "Y", "PAGER_SHOW_ALWAYS" => "N", "PAGER_TEMPLATE" => "round", "PAGER_TITLE" => "стр.", "ROWS_PER_PAGE" => "4", "ROW_ID" => $_REQUEST["ID"], "ROW_KEY" => "ID", "SEF_MODE_HL" => "Y", "SEF_MODE_PARAM" => "/brand/#UF_DESCRIPTION#/", "SORT_BY1" => "UF_NAME", "SORT_ORDER1" => "ASC" ) );?><br> |
Нажмите "Сохранить"
Находясь в разделе создайте страницу detail.php
Разместите на ней компоненты, как показано на скриншоте
Примерный код вызова:
<?$APPLICATION->IncludeComponent( "maxyss:hl_brand.detail", ".default", Array( "BLOCK_ID" => "2", "BROWSER_TITLE" => "UF_BROWSER_TITLE", "CACHE_TIME" => "360000", "CACHE_TYPE" => "A", "CHECK_PERMISSIONS" => "N", "COMPONENT_TEMPLATE" => ".default", "FIELD_CODE" => array(0=>"UF_FILE",1=>"UF_FULL_DESCRIPTION",2=>"",), "FILTER_CODE" => "BRAND_REF", "FILTER_NAME" => "brandFilter", "LIST_URL" => "/brand/", "META_DESCRIPTION" => "UF_BROWSER_TITLE", "META_KEYWORDS" => "UF_BROWSER_TITLE", "ROW_ID" => $_REQUEST["ID"], "ROW_KEY" => "ID", "SEF_MODE" => "Y", "SEF_RULE" => "/brand/#UF_DESCRIPTION#/", "SET_BROWSER_TITLE" => "Y", "SET_META_DESCRIPTION" => "Y", "SET_META_KEYWORDS" => "Y", "SET_TITLE_HL" => "Y", "TITLE_HL" => "UF_BROWSER_TITLE" ) );?> <?$APPLICATION->IncludeComponent( "bitrix:catalog.section", ".default", Array( "ACTION_VARIABLE" => "action", "ADD_PICT_PROP" => "MORE_PHOTO", "ADD_PROPERTIES_TO_BASKET" => "Y", "ADD_SECTIONS_CHAIN" => "N", "ADD_TO_BASKET_ACTION" => "ADD", "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" => "Y", "CACHE_TIME" => "36000000", "CACHE_TYPE" => "A", "COMPATIBLE_MODE" => "N", "COMPONENT_TEMPLATE" => ".default", "CONVERT_CURRENCY" => "N", "CUSTOM_FILTER" => "{\"CLASS_ID\":\"CondGroup\",\"DATA\":{\"All\":\"AND\",\"True\":\"True\"},\"CHILDREN\":[]}", "DETAIL_URL" => "", "DISABLE_INIT_JS_IN_COMPONENT" => "N", "DISPLAY_BOTTOM_PAGER" => "Y", "DISPLAY_COMPARE" => "N", "DISPLAY_TOP_PAGER" => "N", "ELEMENT_SORT_FIELD" => "sort", "ELEMENT_SORT_FIELD2" => "id", "ELEMENT_SORT_ORDER" => "asc", "ELEMENT_SORT_ORDER2" => "desc", "ENLARGE_PRODUCT" => "STRICT", "FILE_404" => "", "FILTER_NAME" => "brandFilter", "HIDE_NOT_AVAILABLE" => "N", "HIDE_NOT_AVAILABLE_OFFERS" => "N", "IBLOCK_ID" => "2", "IBLOCK_TYPE" => "catalog", "INCLUDE_SUBSECTIONS" => "Y", "LABEL_PROP" => array(), "LAZY_LOAD" => "N", "LINE_ELEMENT_COUNT" => "3", "LOAD_ON_SCROLL" => "N", "MESSAGE_404" => "", "MESS_BTN_ADD_TO_BASKET" => "В корзину", "MESS_BTN_BUY" => "Купить", "MESS_BTN_DETAIL" => "Подробнее", "MESS_BTN_SUBSCRIBE" => "Подписаться", "MESS_NOT_AVAILABLE" => "Нет в наличии", "META_DESCRIPTION" => "-", "META_KEYWORDS" => "-", "OFFERS_CART_PROPERTIES" => array(), "OFFERS_FIELD_CODE" => array(0=>"",1=>"",), "OFFERS_LIMIT" => "5", "OFFERS_PROPERTY_CODE" => array(0=>"",1=>"",), "OFFERS_SORT_FIELD" => "sort", "OFFERS_SORT_FIELD2" => "id", "OFFERS_SORT_ORDER" => "asc", "OFFERS_SORT_ORDER2" => "desc", "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" => ".default", "PAGER_TITLE" => "Товары", "PAGE_ELEMENT_COUNT" => "9", "PARTIAL_PRODUCT_PROPERTIES" => "N", "PRICE_CODE" => array(0=>"BASE",), "PRICE_VAT_INCLUDE" => "Y", "PRODUCT_BLOCKS_ORDER" => "price,props,sku,quantityLimit,quantity,buttons,compare", "PRODUCT_DISPLAY_MODE" => "N", "PRODUCT_ID_VARIABLE" => "id", "PRODUCT_PROPERTIES" => array(), "PRODUCT_PROPS_VARIABLE" => "prop", "PRODUCT_QUANTITY_VARIABLE" => "quantity", "PRODUCT_ROW_VARIANTS" => "[{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false}]", "PRODUCT_SUBSCRIPTION" => "N", "PROPERTY_CODE" => array(0=>"BRAND_REF",1=>"ARTNUMBER",2=>"MATERIAL",3=>"",), "PROPERTY_CODE_MOBILE" => array(), "RCM_PROD_ID" => $_REQUEST["PRODUCT_ID"], "RCM_TYPE" => "personal", "SECTION_CODE" => "", "SECTION_ID" => $_REQUEST["SECTION_ID"], "SECTION_ID_VARIABLE" => "SECTION_ID", "SECTION_URL" => "", "SECTION_USER_FIELDS" => array(0=>"",1=>"",), "SEF_MODE" => "N", "SET_BROWSER_TITLE" => "N", "SET_LAST_MODIFIED" => "N", "SET_META_DESCRIPTION" => "N", "SET_META_KEYWORDS" => "N", "SET_STATUS_404" => "Y", "SET_TITLE" => "N", "SHOW_404" => "Y", "SHOW_ALL_WO_SECTION" => "Y", "SHOW_CLOSE_POPUP" => "N", "SHOW_DISCOUNT_PERCENT" => "N", "SHOW_FROM_SECTION" => "N", "SHOW_MAX_QUANTITY" => "N", "SHOW_OLD_PRICE" => "N", "SHOW_PRICE_COUNT" => "1", "SHOW_SLIDER" => "N", "SLIDER_INTERVAL" => "3000", "SLIDER_PROGRESS" => "N", "TEMPLATE_THEME" => "blue", "USE_ENHANCED_ECOMMERCE" => "N", "USE_MAIN_ELEMENT_SECTION" => "N", "USE_PRICE_COUNT" => "N", "USE_PRODUCT_QUANTITY" => "N" ) );?><br> |
В админке сайта на странице "Правила обработки адресов" создайте новое правило
Результат примерно такой: