I
I
Ivan Shumakov2018-10-17 22:52:15
1C-Bitrix
Ivan Shumakov, 2018-10-17 22:52:15

How to set up the "Filter by Elements" component?

In my infoblock, the elements have three properties. The "Filter by Elements" component should filter by these properties. What data and where should I insert?

<?$APPLICATION->IncludeComponent (
    "bitrix:catalog.filter",
    "",
    Array(
        "IBLOCK_TYPE" => "news",
        "IBLOCK_ID" => "2",
        "FILTER_NAME" => "arrFilter",
        "FIELD_CODE" => array(),
        "PROPERTY_CODE" => array(),
        "OFFERS_FIELD_CODE" => array(),
        "OFFERS_PROPERTY_CODE" => array(),
        "PRICE_CODE" => array(),
        "CACHE_TYPE" => "A",
        "CACHE_TIME" => "36000000",
        "CACHE_GROUPS" => "Y",
        "LIST_HEIGHT" => "5",
        "TEXT_WIDTH" => "20",
        "NUMBER_WIDTH" => "5",
        "SAVE_IN_SESSION" => "N",
        "PAGER_PARAMS_NAME" => "arrPager"
    ),
    false
);?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumakov, 2018-10-18
@ivanshumakov

Solved the problem, it was necessary to create a symbolic code for the properties

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question