S
S
sendr2020-09-28 14:12:30
1C-Bitrix
sendr, 2020-09-28 14:12:30

1c-bitrix, does the smart filter work in the bitrix:news complex component?

The complex bitrix:news component has a built-in filter that works as it should, but it is inconvenient to use

. But the bitrix:catalog.smart.filter component (Smart Filter) does not filter elements from the bitrix :news

component these filters get different when you set the desired parameters and click the "Show" button.

What is worth checking, who has come across this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Alexandrov, 2020-09-28
@sendr

works, connection example in news.php file

<?$APPLICATION->IncludeComponent(
          "bitrix:catalog.smart.filter", 
          "projects_filter", 
          array(
            "CACHE_GROUPS" => "Y",
            "CACHE_TIME" => "36000000",
            "CACHE_TYPE" => "A",
            "COMPOSITE_FRAME_MODE" => "A",
            "COMPOSITE_FRAME_TYPE" => "AUTO",
            "DISPLAY_ELEMENT_COUNT" => "Y",
            "FILTER_NAME" => "arrFilter",
            "FILTER_VIEW_MODE" => "vertical",
            "IBLOCK_ID" => $arParams["IBLOCK_ID"],
            "IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],
            "PAGER_PARAMS_NAME" => "arrPager",
            "POPUP_POSITION" => "left",
            "SAVE_IN_SESSION" => "N",
            "SECTION_CODE" => "",
            "SECTION_DESCRIPTION" => "-",
            "SECTION_ID" => "",
            "SHOW_ALL_WO_SECTION" => "Y",
            "SECTION_TITLE" => "-",
            "SEF_MODE" => "N",
            "TEMPLATE_THEME" => "blue",
            "XML_EXPORT" => "N",
            "COMPONENT_TEMPLATE" => "projects_filter",
            "SEF_RULE" => "/proekty/filter/#SMART_FILTER_PATH#/apply/",
            "SECTION_CODE_PATH" => "",
            "SMART_FILTER_PATH" => $_REQUEST["SMART_FILTER_PATH"],
            'VIEW' => $VIEW,
          ),
          false
        );?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question