Help - Search - Members - Calendar
Full Version: add dates on archive pages
Movable Type Community Forum > Additional Resources > Tips and Tricks
leomantis
i know this is probably in the manual or somewhere on this forum, but i didnt find it in either place.

so i would like to know how to add dates in the numeric format on my archives page, in front of the entry title link. please advise. thank you
kadyellebee
I modified your post title to be more descriptive. You may want to check out the How to Ask for Help docs to see suggestions for getting questions answered!!
kadyellebee
Depending on which Archive page you are looking to add this to, MTArchiveDate and/or MTEntryDate are helpful. The Date Tag Formats give examples of how to make numbers display instead of words.

Kristine
leomantis
okay i'm dumb, i went there and got the date where i want it, but it's TODAY'S date in front of each entry lol.
CODE
<MTArchiveList><$MTDate format="%I.%e.%y
"$>:
<a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a><br />
</MTArchiveList>

that's what i changed it to, what am i doing wrong?
kadyellebee
MTDate shows the date of the last rebuild. MTArchiveDate is probably what you want, since its in the MTArchiveList container.

Kristine
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.