Next Page Link

Having trouble installing serendipity?
Post Reply
deadpoeticstar
Regular
Posts: 56
Joined: Tue Apr 18, 2006 3:10 pm

Next Page Link

Post by deadpoeticstar »

ive seen how it displays the title of the next entry and the previous entry when leaving a comment...but how would i make it do the same at the bottom?

(Page 1 of 2, totaling 7 entries) » next page

so instead of next page it would be the name of the first entry ON that next page

so for instance it would Be (Page 1 of 2, totaling 7 entries) » Welcome

and the same way for the previous only it show the title of the last entry on the previous page

« Immigration Reform (Page 2 of 2, totaling 7 entries)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

It'd take some plugin or patching work, I think. The problem is that the entries on the next and previous page are not available in the template.

It's more than I can take on right now, but in includes/functions_entries.inc.php you can find where we set footer_next_page and footer_prev_page. If you can figure out how to get the next/previous title, you could add it to additional variables, like footer_next_page_title and footer_prev_page_title. Then you could replace {$CONST.NEXT_PAGE} with {$footer_next_page_title} in your entries.tpl.
Judebert
---
Website | Wishlist | PayPal
deadpoeticstar
Regular
Posts: 56
Joined: Tue Apr 18, 2006 3:10 pm

Post by deadpoeticstar »

oh its nothing to get in a twist over...just wondering :) cause though i did set that up myself...im NO expert on PHP and the variables...lol
Post Reply