Help - Search - Members - Calendar
Full Version: Can I override the <$MTArchiveTitle$> format?
Movable Type Community Forum > Additional Resources > Tips and Tricks
alienfur
From all the stuff I've checked there's no way to override the format in which <$MTArchiveTitle$> is displayed, but I want some sort of way to display only the month and year in a for something in a daily archive.

I'm using girlie's tip for going back and forth on my calendar, it's fine for my monthly archive, but I also want it to display right for my daily archive.  The calendar title displays the month, date, and year in my daily archives pages since it uses the <$MTArchiveTitle$> tag for the title.

To see it for yourself you can go to: http://www.alienfur.com

and click on one of the days on my calendar (daily archive, incorrect)
vs clicking on one of the monthly archives on the front page (correct)

I've tried to find another tag to use instead of it, or with it to alter the format, but I have had no such luck.  I figured I'd come here and see if there was anything I was missing that someone else might know.

-af
cpuwiz
I think that you could use <$MTArchiveDate$> instead, to accomplish what you want.  Something like this:

CODE
<$MTArchiveDate format="%B %Y"$>
alienfur
I could have sworn I already tried that, but I went ahead and put it in, and it works!

kiss kiss!
-af
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.