I'd see if you can do a CFEXECUTE to run a batch file to create a DIR of the
directory with your CF templates. Construct a parser to parse out the
directory information and grab the last-modified date for the particular
templates.
Alan McCollough
Web Programmer
Certified ColdFusion Developer
Alaska Native Medical Center
> -----Original Message-----
> From: Allen Hudson [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 17, 2000 5:42 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: last modified date of file
>
> I recently took over maintaining some websites where there is a
> requirement
> to have a "last modified" date at the bottom of every page. This is
> currently accomplished by the <cfinclude> of a footer template which has a
> date hard coded into it. However, some of the pages change more
> frequently
> than others so I want to implement a way (other than hard coding it if I
> can) of checking the main template's date and displaying that.
>
> Our particular site is hosted at a public ISP on a shared NT box (CF4.01)
> where it appears the CGI server side includes are turned off. (my web
> server
> knowledge is not great so please correct me if I have made some wrong
> assumptions.)
>
> I attempted to use the simple javascript in the footer. (My javascript
> skills are basically at the cut-and-paste level)
>
> <script language="javascript">
> document.write(document.lastModified);
> </script>
>
> Netscape gives me Dec 31, 1969 while IE displays the footer's date.
> Putting
> the code in the main body of the template gives the date I want in IE but
> Netscape(4.61) says we're starting the 70's again (a horrible prospect
> IMHO)
>
> Any suggestions as to how I might proceed or what I may be doing wrong?
>
> An additional question - given that I am a fan of the fusebox methodology
> (though our current sites are not coded to such, the new ones will be),
> how
> could one satisfy the last modified requirement on each page without
> hardcoding the date?
>
> Al Hudson
> --------------------------------------------------------------------------
> ----
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.