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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.