Awesome q2a theme

How to split the search results across multiple infoblocks?

0 like 0 dislike
57 views
Hello! Guys, maybe someone knows. Standard search component search.title. On the results page - search.page, like so it is called. The search is performed in three iblock (catalog, news, services). Here it is clear.
On the page of search results I need to split the output to three blocks. Results news information block, then the Directory and the results of the InfoBlock Service. Can someone tell me how to do it? The idea was to component.php to create an array with the group name of the information block for each found item.. but at the end, the issue may be and section, and the element itself. What are your thoughts? Thanks in advance for any leads.
by | 57 views

1 Answer

0 like 0 dislike
In result_modifier the array will run and depending on IBLOCK_ID do a breakdown. Something like this probably.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users