Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Site Publish Date (cf Article Publish Date)

I need to put a "This site was last updated on ..." on the index page of a site. Is there a automatic variable for this?
I see the "filed date" for an article, but this doesn't seem to be the same thing.

ie. I create a load of articles on the 1st of the month, but hit "Publish" on the 2nd. I want the front page to say "Last Updated : 2nd ...", but each article to still have the "real" published date.

Mike Charnock
Wednesday, November 27, 2002

{$ foreach 1x in (all) SortDescendBy .fileddate $}{$x.fileddate$}{$next$}

This gets the latest file date.

tk
Wednesday, November 27, 2002

Not the actual published date then (the date I hit the "Publish Button"), but close enough I think! :-)

Thanks

Mike Charnock
Wednesday, November 27, 2002

That's a damn clever idea Terry, I never thought of that!

John C
Wednesday, November 27, 2002

*  Recent Topics

*  Fog Creek Home