tips and tricks for movable type
MTArchiveDate and MTArchiveDateEnd
September 21, 2002
ATJ asked in this MT support forum thread how to change the display of the links to his weekly archives from this:
September 15, 2002 - September 21, 2002
to this:
15/09/2002 - 21/09/2002
Easily done with <MTArchiveDate> and <MTArchiveDateEnd>.
Instead of listing your Archives like this:
<MTArchiveList>
<a href="<MTArchiveLink>"><MTArchiveTitle></a><br />
</MTArchiveList>
<a href="<MTArchiveLink>"><MTArchiveTitle></a><br />
</MTArchiveList>
list them like this:
<MTArchiveList>
<a href="<MTArchiveLink>"><MTArchiveDate format="%d/%m/%Y"> - <MTArchiveDateEnd format="%d/%m/%Y"></a><br />
</MTArchiveList>
<a href="<MTArchiveLink>"><MTArchiveDate format="%d/%m/%Y"> - <MTArchiveDateEnd format="%d/%m/%Y"></a><br />
</MTArchiveList>
Comments
And how about adding a day? How do you do that?
Well, the example is for weekly archives, so I'm not quite sure what you mean by "adding a day"??
Oh by day I mean in this format:
Tuesday, September 24, 2002
Tuesday, being the day.
BTW, girlie, I am also SunMark in the forums.
And I think the Bold, Italics and Link buttons you have in here are superneat. Care to share this time-saving secret?
Change the date format in MTArchiveDate and MTArchiveDateEnd tags to this:
format="%A, %B %d, %Y"
P.S. My post "Comments Formatting Buttons" refers you to this forum thread where Brenna explains how to add this feature to your comments. =)
Yes, thanks, I saw that right after I posted here. This solution doesn't work if the user is on a Mozilla or Netscape browser though, I already checked. But reading the tutorial gave me a couple of ideas. I think I could create a Flash (Macromedia) interface for the entire comment popup window. I'll have to test it out.
What would I do without the totally awesome Girlie Matters?
Show me someone as awesome. I dare you.
-mice