Webmastersite.net
Register Log In

pagination on search results

Comments on pagination on search results

hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted May 12, 2009 - 7:58 PM:

The pagination variables on the searchall template aren't working. Actually, let me rephrase that, the page links work, but page 1 is always bold and unclickable. Basically, I can page through to the other pages of results, but I can't get back to the first page without manually editing the url.

I've also noticed that the last page completely removes the pagination and it no longer gives me the total search results. For example, if I show 5 results per page and have a total of 12 results, I get "12 matching results for "search term":" at the top of pages 1 & 2, but page 3 will show "2 matching results for "search term":" and I no longer have the ability to click back to the previous pages.

Out of curiousity, is it possible to have an ordered list of results which picks up the number where the first page left off? So page 1 shows results numbered 1 - 5, page 2 shows 6 - 10, etc.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 15, 2009 - 1:47 AM:

All the pagination links on the "search all" page lead to the individual type searches. Page 1 clickable and brings you to page one of that type of search. If that's not how it is for you, try the default templates.

Out of curiousity, is it possible to have an ordered list of results which picks up the number where the first page left off? So page 1 shows results numbered 1 - 5, page 2 shows 6 - 10, etc.

{NUMBER} should give you that.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted May 15, 2009 - 8:59 AM:

I really hadn't made any changes to the template, but restored the default to be sure. Unfortunately, I'm still having the same problem. I understand that there are different paginations for each type of search, and I've tested searching for categories or comments that will result in multiple pages and have gotten the same result.

For example when the search page first loads I get
- 12 matching results for "my search term"
- A list of 5 matching links
- Page: 1(in bold) 2 3 (both clickable)

I click the #2 and it loads page 2 correctly except that the pagination at the bottom still won't let me click on page 1.

Then I click #3 and it loads page 3, but tells me I have '2 matching results for "my search term"' and the pagination is gone.

If you would like to take a look here's the link to a search using the default template (be warned it's a very heavy site) -
First page: www.hifalls.net/list/search...lled=1&condition=or&page=1
vs.
Last page: www.hifalls.net/list/search...lled=1&condition=or&page=4


{NUMBER} should give you that.

Thanks. Didn't think of that, had tried an ordered list, but it kept going back to 1 at the beginning of each page. I'll give it a try.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 15, 2009 - 4:36 PM:

Somehow, you're getting search links that don't include the whichtype bit. This is impossible for links searches in the script I'm using. Seach all pagination links for the links part look like: search.php?search=a&whichtype=links&filled=1&condition=and&p age=2

So I'd need FTP access to comment on how you can possibly not have whichtype=links.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted May 15, 2009 - 8:18 PM:

Ahh! Ok, I see now what I did wrong. Had attempted to add a quick search box in my wrapper. Took out the selection box and forgot to replace it with something else. Never thought to look at the search box code figured it was something on the results page template. I understand now.

Thank you.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.