Answer the question
In order to leave comments, you need to log in
How to make bitrix:news.list work with bitrix:catalog.filter when bitrix:catalog.filter is located below bitrix:news.list?
The bitrix:news.list and bitrix:catalog.filter
components are called on the page .
You need to pass the value of the variable returned by bitrix:news.list to $arParams bitrix:catalog.filter . I solved the problem in the following way. However, now the filter, of course, does not work, since arFilter is now formed below bitrix:news.list .
Is this problem somehow solved?
$APPLICATION->ShowViewContent("filter");
$return = $APPLICATION->IncludeComponent(
"bitrix:news.list",
"",
Array(
"FILTER_NAME" => "arFilter",
// ...
)
);
ob_start();
$APPLICATION->IncludeComponent(
"bitrix:catalog.filter",
"",
Array(
"FILTER_NAME" => "arFilter",
'RETURN' => $return,
// ...
),
$component
);
$APPLICATION->AddViewContent("filter", ob_get_clean());
CAjax::GetForm("", "comp_7409d65e7fac8b82c3fb20e6ad6a4bca", "7409d65e7fac8b82c3fb20e6ad6a4bca");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question