Forums / Developer / eZsearch - sort by in fetch

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

eZsearch - sort by in fetch

Author Message

K259

Sunday 20 November 2005 8:47:23 am

I need to get articles and folders first in the ezsearch-result, and also group the search-results.

Does anyone know how I can fix this in the ezsearch?

Łukasz Serwatka

Tuesday 29 November 2005 6:30:28 am

Use sort_by parameter for result sorting.
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/search

If you want to group results, you will have do to this during loop, create new array. Look on "append" tpl operator.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog