Forums / Extensions / eZ Find / custom facet result
Romain Bremaud
Tuesday 08 March 2011 9:33:34 am
Hello everybody.
I would like to customize the search result with the following schema :
- Result of recherche
6 news
- news 1 view : ez_find_line
- news 2 view : ez_find_line
- see all news
3 videos
- video 1 : ez_find_line
- video 2 : ez_find_line
- see all videos.
etc
I show only two result by class.
For the moment the basic search template use 2 loop separatly. One for the facet and the other for search result.
Is there a way to do a mix between the facet array and result array ? I could do a fecth for each class, but I think it is a bad utilisation of ezfind.
Romain
Romain Bremaud Les clefs du net
Brandon Chambers
Tuesday 31 May 2011 1:53:07 pm
This might be accomplished via extended attribute filters? Or the dirty way would be to count the number of times a class occurs in looping through results and limit the displaying of them. :)
Brandon Chambers [email protected] blog: http://blog.divdesigns.com Granite Horizon / http://granitehorizon.com