Closed (fixed)
Project:
Finder
Version:
7.x-2.0-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2012 at 12:56 UTC
Updated:
8 Jul 2012 at 10:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
danielb commentedWhat do you mean by 'does not comply' ? Is it showing more than 6?
Comment #2
ripcurl commentedYes, it continues to display all the results.
Comment #3
danielb commentedWorks fine for me.
Can you provide an export of your finder?
Comment #4
ripcurl commentedHi,
Thanks for helping me.
You will find attached an export of my finder and a print screen on which we can see that all results are still displayed without taking into account the limit of 6.
Sorry there are a few french comments in the export.
Comment #5
danielb commentedhmm I can't spot anything wrong with your finder
Anything strange about the views plugins used or pager settings in the views display?
Comment #6
ripcurl commentedI have the last version of the views pluggin (printscreen of my views modules attached).
What view should I check?
I checked the 2 views “Finder node” and “Finder user” (I did no change before on these views ). They have a pagination to 10 items. Should I check other parameters in these views ?
Comment #7
danielb commentedBy plugin I'm not referring to modules, it's something within views or provided by any other module.
You checked "finder node" and "finder user" views - however your finder appears to be using neither of these. It is using a view called "vue_annuaire_membres"?
Comment #8
ripcurl commentedOk you've got it.
I did not use paging in the view "vue_annuaire_membres".
As this view is used for the contents of the results page, I did not think the number of results displayed in the finder was impacted.
The trouble is I do not want to limit the number of results on the page but limit it in the Finder.
In order to get around the problem, I used pagination in the view "vue_annuaire_membres" and set 100 as a limit.
Finder respect now the limit of 6 results and I can have more than 6 items displayed on the result page.
Everything is ok now. We just have to know that if we do not use pagination in the view of the results page, finder does not take into account the limit specified in the finder parameters.
Many thanks for your help and your work on this module.
Comment #9
danielb commentedHmm so are you saying pagination must be enabled in a View for finder's limits to take affect? I wasn't aware of that, I think there is a way to fix it.
FYI, you can also create a new 'display' to use specifically for finder within the view's admin, and then configure that as the display for the autocomplete finder element. This way you can essentially configure the view differently for the results page.
Comment #10
danielb commentedI remember dealing with the opposite issue (turning pagination off) with Views in another module: #1278138: Specifying nodes through a view only returns 10 results
Comment #11
danielb commentedWeird it should already activate the pager, and then set the size:
I know I'm saying 'pager' instead of limit, but that's the functionality used to get the limiting effect.
Comment #12
danielb commentedif i change the code in finder.inc views_find() like this it seems to work, but i'm not sure this is the best way to do it?
Comment #13
danielb commentedAlright well we'll go with that for now, i've added a comment in the code pointing back to this issue. The code is actually in two places.