Help - Search - Members - Calendar
Full Version: Next Link in Category Only?
Movable Type Community Forum > Additional Resources > Tips and Tricks
phil_geek
How can I make the next link on the individual entry page go to the next entry in that same category, instead of the next depending on the date of the entry?
girlie
how to from Scriptygoddess (requires PHP)
phil_geek
thanks, scriptygoddess saves me again!!!
jblayloc
Scriptygoddess's most excellent and elegant solution does not seem to work with my site, which uses server-side includes (so all my pages are shtml). I use includes to produce a list of entries within the category of a particular entry, and it would be nice to provide Previous and Next links in that context.

I don't suppose anyone has come up with a way to do this without using PHP. It seems like a function that would be useful to many people.

Thanks for the help. You guys and girls are wonderful!
jblayloc
Maybe it would help to use one of my photoblog pages as an example:

Yankee Boy Gold

In the sidebar, you'll find a list of all the entries in the category "Fall in the San Juans." This is done with an include. So is the navigation at the top, above the page title. Right now, the only links to the previous entry, "Beaver Lake Reflection," and the next entry, "Tomboy," are in that sidebar list.

Since these entries are not necessarily consecutive in MT, the standard previous/next navigation won't work. Since I'm using includes, the PHP solution won't work either. If anyone's come up with another way to handle previous/next in category links, I'd love to test it out. Or, if someone has another way of handling the sidebar and top navigation in PHP, I could give that a try too.

Thanks again. jb
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-2010 Invision Power Services, Inc.