put this code in a template and in your tags directory and name it
lastmodified.cfm

<CFDIRECTORY DIRECTORY="#getdirectoryfrompath(gettemplatepath())#"
        NAME=getDateMod
        FILTER="#getfilefrompath(gettemplatepath())#"
        SORT="size ASC, name DESC, datelastmodified">

<CFOUTPUT QUERY="getDateMod">
#getDateMod.datelastmodified#
</CFOUTPUT>

And call it like this

Last Modified: <CF_lastmodified>

Derek


"Allen Hudson" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>..
.
> 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
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to