E
E
Elios2014-12-08 14:19:41
1C-Bitrix
Elios, 2014-12-08 14:19:41

How to sort in Bitrix by property of the IB list?

Good afternoon, ladies and gentlemen.
The essence of the problem. There is an infoblock based on the complex catalog component. The list property is written in ib, it contains xml_id. The question is how to make a selection based on the TOP element component and sort them by the XML_ID of the list?
Now, if you make a selection simply by property, then there are no problems, just use (PROPERTY_MY_PROPERTY) and everything works. Tried to register PROPERTY_MY_PROPERTY-ID168 sampling does not happen. Lord tell me where to dig. I can attach the component code if needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elios, 2014-12-08
@Elios

The question was solved as follows: - It may be useful to someone

<?
GLOBAL $arrFilterTop;
$elementID = 2;
$arrFilterTop = array(
'PROPERTY_3' => $elementID,
);
?>

And added arrFilterTop to the component call array

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question