$content = str_replace("[PRODUCTS|10,11,12,13,14,15]", 123, $content);
->where([
["UF_ACTIVE", "=", 1],
["UF_ELEMENT_ID", "=", $arFields["ID"]],
])
->whereColumn('UF_CREATED_BY',"!=", 'UF_USER_ID')
->where(\Bitrix\Main\Entity\Query::filter()
->logic('or')
->where([
['UF_DATE_ACTIVE', "<=", mktime(23,59,59,date("m"),date("d")+1,date("Y"))],
['UF_DATE_ACTIVE', "=", null],
]))
$filter = [
['FIELD', '>', 2],
[
'logic' => 'or',
['FIELD', '<', 8],
['SOME', 9]
],
protected function initElementList()
{
parent::initElementList();
// compatibility for old components
if ($this->isEnableCompatible() && empty($this->arResult['NAV_RESULT']))
{
$this->initNavString(\CIBlockElement::GetList(
array(),
array_merge($this->globalFilter, $this->filterFields + array('IBLOCK_ID' => $this->arParams['IBLOCK_ID'])),
if($arSection["FILTER"]){
$arrFilter = array(
$arrFilter, //добавляем глобальный фильтр в себя же, для того что бы работал пользовательский фильтр с нашими условиями
"LOGIC" => "AND",
array(
"LOGIC" => "OR",
array("%NAME" => $arSection["FILTER"]),
array("SECTION_CODE" => $arResult["VARIABLES"]["SECTION_CODE"]),
),
);
$arResult["VARIABLES"]["SECTION_ID"] = 0; // Выключаем передачу ID раздела
$arResult["VARIABLES"]["SECTION_CODE"] = '';
$arrFilter = array(
"LOGIC" => "OR",
array("%NAME" => $arSection["FILTER_MOD"]),
array("SECTION_CODE" => $arResult["VARIABLES"]["SECTION_CODE"])