Help - Search - Members - Calendar
Full Version: Prev/Next Chrono, not by ID > Intriguing error
Movable Type Community Forum > Using Movable Type > Templates and Tags
Milohoss
Most interesting >

I have a site up and running, and sometimes post thing in draft mode where they sit around for a while before I actually finishe them. In the meantime several other posts might get published. THUS - the "prev" "next" function on the individual archives will actually scroll in terms of entry ID and not in terms of the order posted. This is problematic because people will "skip" posts without knowing it. I'd like the prev/next to scroll through in exactly the order they posts appear on my front page .... ie chronological in terms of publishing time.

Possible?huh.gif Many thanks. Hoss.
William Jackson
The interesting thing is that your entries are sorted by date.

Suprise, surprise. Even when you save an entry as Draft, Movable Type records the Authored On date. That date won't change automatically when you change the status from Draft to Publish. Unfortunately.

When you change the status to Publish, you will need to manually change the Authored On date, just below the Post Status drop-down box.
Milohoss
Hmm.... now it seems to be ok. Maybe it's not the ID that's skunking it up... I think maybe it has something to do with Future Posting being totally screwed up (a total dud feature imho) Anyway are you certain that "next/prev" always uses the 'authored on' date to sort?
William Jackson
The next/previous sorting depends on the context. If you use

CODE
<MTEntries sort_by="title">

then next/prev will go alphabetically.

In the Individual Entry Archive, however, you don't use the MTEntries tag, and it defaults to sorting by authored-on date.
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.