Page 1 of 1

Next Page Link

Posted: Thu Apr 20, 2006 6:57 pm
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)

Posted: Fri Apr 21, 2006 2:33 am
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.

Posted: Fri Apr 21, 2006 4:29 pm
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