Help - Search - Members - Calendar
Full Version: Pagination On Search Results Broken
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
awhig
Hi,

I just notice after updating to 4.2 that the search results pagination is broken for me. I am using the default templates. After looking at the code, I see that var results variable in the javascript never has more than one element in the array. Is this a known bug? Is there any workaround for this? We are not showing all of the results for our users at this time.

Thanks,
Rich
jamesbow
QUOTE (awhig @ Aug 29 2008, 02:45 AM) *
Hi,

I just notice after updating to 4.2 that the search results pagination is broken for me. I am using the default templates. After looking at the code, I see that var results variable in the javascript never has more than one element in the array. Is this a known bug? Is there any workaround for this? We are not showing all of the results for our users at this time.

Thanks,
Rich


I have been having the same trouble, and am eagerly looking for a fix. I'm frustrated when having large number of search results, having those results cut off prematurely with no provision to look further or deeper.

...James
awhig
I finally found a fix for my problem. I was using a custom search form I had created in a previous version of MT. When the search was executed the limit query parameter was empty so in my URL it looked like "limit=".

I added the following to my search form:

<input type="hidden" name="limit" value="20" > and this passed a limit value to the mt-search.cgi.

This fixed the pagination on my search results page.

Hope this helps,
Rich
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.