Help - Search - Members - Calendar
Full Version: Previous/Next links on the main index
Movable Type Community Forum > Additional Resources > Tips and Tricks
bigmad_drongo
I have been trying to introduce a way for readers to select how many entries to show per page, and also have Next/Previous links on my main index.

However, MT doesn't seem to like me using variables in since the PHP isn't parsed until AFTER the pages are built.

I'm also a bit new to PHP so it's all a bit up in the air anyway.

What I want is to be able to set lastn and offset as variables (or whatever) so that
CODE
http://www.openbrain.co.uk/index.php?entries=10&start=20

would show 10 entries, starting from entry number 20, and there would be a link to show the previous 10, and the next 10.

Any help/tips/advice/full solutions with handy comments?
bigmad_drongo
Thanks for the pointer Brenna, I thought I'd scoured 'Tips and Tricks' from start to finish, but I somehow missed that thread! Looks like I'm going to have to teach myself some more about PHP and mySQL before I can do this then.  ???
bmk
Nah, it's pretty much cut & paste.  :)

I can help you with it if you want.

Brenna
bigmad_drongo
I might take you up on that offer sometime smile.gif but right now I'm going to leave it for a while and then see if I can fix it up myself. I like the challenge sometimes wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.