New Message: News items on home page show postTime differently

webmaster at userland.com webmaster at userland.com
Mon May 26 17:57:45 PDT 2003


A new message was posted:

Address: http://frontier.userland.com/discuss/msgReader$11836

By: Paul Howson (phowson at flexi.net.au)

Manila site set up with news items. News items appear on home page. The News Item template (Prefs > News Items) puts the postDate at the end of each news item. Rather than show the full date and time down to seconds, the postTime is wrapped in a couple of function calls to extract just the date bit and format as a long date:

Posted \{date.longstring(date(postTime))}

For some reason, every news item DISPLAYS THE SAME DATE for when posted -- the date of the most recent posting (which happens to be today).

BUT if you view the news item using the "edit" button (need to be an editor to do this), the news item preview on the editing page shows the post time correctly.

I'm sure this used to work!?? Maybe I'm imagining it. When is the news item template evaluated? Apparently in the context of the actual home page, where it's picking up the postTime for the home page instead of the news item.

If I take out the function wrappers and revert to just \{postTime}, then it works correctly (but shows full date and time in US date format which confuses the hell out of Australians).

Is there a way around this?

This is a Manila site.. http://manila.userland.com/.




More information about the Frontier-Server mailing list