Help - Search - Members - Calendar
Full Version: Previous/next Entries
Movable Type Community Forum > Using Movable Type > Entries and Archives
gulliver
Is it possible to use two different individual entry archives and have the previous/next entry links behave accordingly?

One is a normal date-based, with this archive file path: <MTArchiveDate format="%Y/%B/%d">/%E/%i

The other is an alternate, with the archive file path: az/%E/%i

When linking to an individual entry using the former, the previous/next should link to the date-based entries.

And in the az example, they should stay within the az directory.

I'm only able to get them to behave one way or the other by setting the preferred archive type.
david
The <MTEntryPermalink> tag will only provide a link to the preferred individual entry archive type. If you wish to link to a non-preferred individual entry archive page, the link would need to be constructed manually from the archive file path using other Movable Type template tags.

For example, if the <MTArchiveDate format="%Y/%B/%d">/%E/%i archive is set as the preferred individual entry archive type, it should be possible to construct a link to the other (non-preferred) individual entry archive type by using the following template tags:

CODE
<MTBlogArchiveURL>az/<MTEntryID>/

If the az/%E/%i archive is set as the preferred individual entry archive type, then you should be able to construct a link to the other (non-preferred) individual entry archive type by using the following template tags:

CODE
<MTBlogArchiveURL><MTArchiveDate format="%Y/%B/%d">/<MTEntryID>/


gulliver
Excellent. Thanks. Problem solved. ;-)
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-2008 Invision Power Services, Inc.