pagination and orderby-random
Posted: 16 May 2008 08:42 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  123
Joined  2007-08-07

I just noticed a little bug when I use paginate="bottom" and orderby="random".

Basically what is happening is I have over 50 entries in a particular weblog.
Now when I test the pagination each time I click to get a new page I get random results. Then I can only run through a total of 25 entires before the pagination stops with no more results.

Is there some kind of way to randomize the list once and then paginate through them?

Profile
 
 
Posted: 16 May 2008 10:04 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5781
Joined  2002-08-04

Not that I’m aware of standard but maybe using a query or php.

Profile
 
 
Posted: 16 May 2008 11:21 PM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  11034
Joined  2004-05-15

No, there is no built-in way to use pagination and orderby="random" together easily. These two threads shed some light on the issue. Your best bet would be to support the existing feature request, I guess.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.
No PM’s, please—use regular mail.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 58060 Total Logged-in Users: 29
Total Topics: 68030 Total Anonymous Users: 31
Total Replies: 366444 Total Guests: 512
Total Posts: 434474    
Members ( View Memberlist )
Newest Members:  novostudiocarlsonbtd3gvramanaCharley Parkericabanoliverhoodmattlecold_fusion0xhiryuu