Hello, What way is there to refer to the last-modified date of a Zope document, from within it? Since it's displayed on the management page for a document, I'm sure it's accessible somehow, but so far guessing at names to use in <!--#var document-last-modified--> hasn't gotten me anywhere, and I don't see it listed in Properties. Am I overlooking it in one of those lists in the User Guide? Thanks, Mitch Marks -- Mitchell Marks (773) 702-6041 AAC-010A CUIP: Chicago Public Schools / Univ. of Chicago Internet Project http://cuip.uchicago.edu/cuip "The University of Chicago -- fun and sun capital of the Midwest"
On Mon, 5 Apr 1999, Mitchell Marks wrote:
Hello,
What way is there to refer to the last-modified date of a Zope document, from within it? Since it's displayed on the management page for a document, I'm sure it's accessible somehow, but so far guessing at names to use in
<!--#var document-last-modified-->
hasn't gotten me anywhere, and I don't see it listed in Properties. Am I overlooking it in one of those lists in the User Guide?
Mitchell - bobobase_modification_time is what you need. It is a DateTime object so you can use one of the many possible output formats described in thr DTML manual, for instance: <!--#var bobobase_modification_time fmt=Date--> Pavlos
On Mon, Apr 05, 1999 at 01:51:53PM -0400, Pavlos Christoforou wrote:
On Mon, 5 Apr 1999, Mitchell Marks wrote:
[Asks how to get last modified time] bobobase_modification_time is what you need. It is a DateTime object so you can use one of the many possible output formats described in thr DTML manual, for instance:
<!--#var bobobase_modification_time fmt=Date-->
The part this forgets is that in this kind of architecture (documents composed of other documents) you have to decide WHAT you want the last modified time of :-) Is this the template you want, or a component of the template? What would be really nice is to have a variable that had the computed "last modified" based on which object had the most recenty time... but you'd need the ability to exclude things like header images that aren't really relevent to this calculation. Fun huh? Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright
hi all, interesting thread. how could the bobobase_modification_time tag be used in the standard html footer without it displaying the last modification date for standard_html_footer? regards. webman --------------------------------------------------------------------------- webman | _ beehive GmbH | ASCII ribbon campaign ( ) berlin, Germany | - against HTML email X http://www.beehive.de | & vcards / \
participants (4)
-
Christopher Petrilli -
Mitchell Marks -
Pavlos Christoforou -
WWW Admin