Help - Search - Members - Calendar
Full Version: Archive Links
Movable Type Community Forum > Additional Resources > Tips and Tricks
Anaisamy
Hi,  on my site, I have links to my monthly archives going back until the first entry in my blog 1 1/2 years ago.  How do I make it so that only the last 6 months show up in that link list?  I'd like to do this using MT only, no PHP - pretty please!
bmk
You can use lastn="6" in your archivelist.
Anaisamy
Wow, that was simple! Thanks so much! :-)
bmk
I didn't realize that tag worked like that til a few weeks ago I came across that in the manual!  hehe.

CODE
<MTArchiveList archive_type="Monthly" lastn="6">


cool.  glad it's what you were looking for!
TimB652
Ok, I have a follow-up question. I want to do the same thing only lastn isn't working. If I have lastn=5 I get the last 2 archive links, if lastn=8 I get the last 3, lastn=20 I get the last 7 - no rhyme or reason that I can see. Any idea what the problem is?
TimB652
Ok, apparently it's a known problem in MT 3.2. I found the answer here:
http://www.sixapart.com/movabletype/kb/kno...n_does_not.html
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.