S
S
Sergey Valitov2018-03-31 12:58:52
1C-Bitrix
Sergey Valitov, 2018-03-31 12:58:52

How to filter news component by multiple property?

Guys, hello everyone. Such a question - I want to filter the news component in Bitrix by the PROPS multiple property. This property has a multiple value of type string. Now there are several lines, for example: Price = 1500000 €, area = 500m², etc.
I reassign the arrFilter array and reference it in the component's parameters. How do I populate the array:

$GLOBALS['arrFilter'] = Array("ACTIVE" => "Y", 'PROPS' => array("1.900.000 €"));

And of course this doesn't work. Who can faced similar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-03-31
@vaajnur

here is the dock
https://dev.1c-bitrix.ru/learning/course/index.php...
filtering by property is done like this
$arrFilter['PROPERTY_<property code>']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question