S
S
Sergey Valitov2018-04-28 16:33:48
1C-Bitrix
Sergey Valitov, 2018-04-28 16:33:48

How to split search results into several infoblocks?

Hello! Guys, maybe someone knows. Standard search component search.title. On the results page - search.page, that's what it's called. The search is carried out by three information blocks (catalog, news, service). It's clear here.
On the search results output page, I need to split the output into three blocks. The results for the News infoblock, then the Catalog, and the results for the Service infoblock. Can anyone suggest how to do this? There was an idea in component.php to form an array grouped by the name of the infoblock for each found element .. but after all, as a result of the output, there can be both a section and the element itself. Any thoughts? Many thanks in advance for any insights.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
I'm Yoda, 2018-04-29
@Anadi

Run the array in the result_modifier and, depending on the IBLOCK_ID, do the breakdown. Like so probably.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question