WebmasterSite.net

pagination on search results

Version: 5.0.46
URL:

PrintPrint


pagination on search results
hai
Forum Regular
Avatar

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

Total Topics: 93
Total Posts: 335

Last Blog: CafePress Shops Free Shipping on $50 till 2/8

quote post #1
Posted 05/12/09 - 4: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.

Edited by hai on 05/12/09 - 5:04 PM. Reason: added ordered list question
High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
Paul
developer
Avatar

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

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 05/14/09 - 10:47 PM:

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
Avatar

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

Total Topics: 93
Total Posts: 335

Last Blog: CafePress Shops Free Shipping on $50 till 2/8

quote post #3
Posted 05/15/09 - 5: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: http://www.hifalls.net/list/search...lled=1&condition=or&page=1
vs.
Last page: http://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.
High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
Paul
developer
Avatar

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

Total Topics: 65
Total Posts: 7614
quote post #4
Posted 05/15/09 - 1: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
Avatar

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

Total Topics: 93
Total Posts: 335

Last Blog: CafePress Shops Free Shipping on $50 till 2/8

quote post #5
Posted 05/15/09 - 5: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.
High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
 
Search thread for
Download thread as


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