Presenting the results of a search by sector

All that’s needed is to include the search loop inside another section loop that select the top level sections only; inside the search loop itself, we then add in the "id_secteur" criterion to limit the search to the current sector.

Note that the sector title is only displayed if the search provides successful results for the sector in question. Aside from that, each sector is restricted to displaying only the top five classed articles in decreasing order of relevancy.

It is important, however, to note that the search will be performed as many times as there are sectors (at the root level), so the processing time could be quite long.

Author Mark Published : Updated : 26/10/12

Translations : català, English, Español, français, italiano, Nederlands, svenska, українська