Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Text to include publish date

Hi All,

What should I code so that I can display the date of the last site update?  Something like:

"Here are the articles that were posted on the day of the last update (Friday 10/11/02)"

Currently I use {$.filedDate$}) for the date, but that is based off the file date of the article its written it. 

Is there a {$today$} or equivalent that is the date of the last publish/ftp?

Thanks.
David.

David Watts
Saturday, October 12, 2002

To publish the date of your latest article:

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

tk
Saturday, October 12, 2002

One problem with this approach is that you have to remember to manually change the .fileddate every time you update a page. It would be nice to have a date, not set by the user, which is the last update time of the article -- the last time any changes were saved.

ns
Sunday, October 13, 2002

Yes you do have to remember and there have been lots of requests for {$revisiondate$} or something like it.  I make pages like this amd preview them to check myself:
http://tk-jk.net/Bridgers/date.html

tk
Sunday, October 13, 2002

TK, those pages display a rather odd style of indenting paragraphs.  Is that intentional?  This has nothing to do with CityDesk, but I'm just curious.

Alex Chernavsky
Sunday, October 13, 2002

Alex, I'll be happy to email you the template if you like but I'm guessing you mean the format of the articles themselves.

The format of the articles duplicates the format of Dr. B's own handwritten pages.  We are trying to publish everything he wrote that we can find, we're 1/3 through.

Here is the image of a handwritten page
http://tk-jk.net/Bridgers/Crick/fog0000000017.html

Here is how I published it:
http://tk-jk.net/Bridgers/Crick/fog0000000007.html

tk
Sunday, October 13, 2002

tk, thanks for your reply to my original question.  That did the trick.
David.

David Watts
Monday, October 14, 2002

*  Recent Topics

*  Fog Creek Home