Pagination with related entries
Posted: 09 May 2008 11:53 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  699
Joined  02-15-2008

I have a weblog called case studies. This weblog has a relation to another weblog called clients. Everything is kokey.

If I want to show all case studies it works just fine, and I also have the facility to show all case studies by a certain client (handled by segment) which also works just fine because the way I’m handling it is to add a conditional inside the {weblog} call that checks the related_entry>{url_title} against segment_2 and only displays the data if it finds a match.

However, once I throw pagination into the mix bad news takes place because pagination is counting everything in the original weblog call (all case studies) and doesn’t take into account that I’m excluding certain data.

Pretty sure this won’t be met with a positive answer, but is there a way to filter on a related field at the point of calling the data so the pagination works?

EDIT// Proposed solution is to turn all clients into categories which would sort my problem, but ideally I’d like to keep them as weblogs because it offers us more option with information.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

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: 60977 Total Logged-in Users: 20
Total Topics: 73690 Total Anonymous Users: 11
Total Replies: 397500 Total Guests: 495
Total Posts: 471190    
Members ( View Memberlist )