Help - Search - Members - Calendar
Full Version: Dates Won't Display As Authored On?
Movable Type Community Forum > Additional Resources > Tips and Tricks
gramcracker
I'm trying to use MT to store several publications--old medical journals, and I've used the authored on attribute as the date the journal articles were originally published.  My main index file, which lists all the publications, is setup like this:

CODE
<MTArchiveList>
 <div class="titlelink"><a href="<$MTArchiveLink$>">
 <MTEntries>
   <$MTEntryTitle$>
 </a></div><i></MTEntries><MTEntries><div align="center">by <$MTEntryMore convert_breaks="0"$>
- <$MTDate format="%B %e, %Y"></div></i></MTEntries>
 <MTEntries><div class="excerpt">
<$MTEntryExcerpt convert_breaks="0"$></div>
</MTEntries><br><br>
</MTArchiveList>


Basically, it sets up links to each article, so when you click on it, it leads to the individual entry page displaying the whole article.  Only problem: in the date format, it lists today's date, instead of the date it was authored on, and I can't figure out why at. Any suggestions? (ps: The MTEntries stuff is redundant, I know, but MT keeps saying it can't find the /MTEntries tags unless I insert all of them in there.)
staggernation
Try <$MTEntryDate$> instead of <$MTDate$>. The former prints the "authored on" date and time of the current entry; the latter prints the date and time the page was rebuilt.
gramcracker
Thanks.  Couldn't figure that out for the life of me. (It's always the most basic stuff that does that.)
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.