Well, duh, that'd be a lot easier than my suggestion! Uh, use the
CFDIRECTORY ! Never had to use the "datelastmod" option before...
Alan McCollough
Web Programmer
Certified ColdFusion Developer
Alaska Native Medical Center
> -----Original Message-----
> From: Paddy McKay [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 17, 2000 6:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: last modified date of file
>
> Why not use CFDIRECTORY?
>
> <cfdirectory name="datelastmod" action="list"
> directory="#getdirectoryfrompath(nameoffile)#" filter="filename.cfm">
>
> <cfoutput>#dateformat(datelastmod.daltelastmodified)#</cfoutput>
>
> paddy
>
> Allen Hudson wrote:
>
> > 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.
------------------------------------------------------------------------------
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.