Copy link to clipboard
Copied
A long time ago when working with PHP, I remembered that there was a code that
could be inserted to the page that when opened, changed, saved by someone, it would print "Last Updated:..."
How is this done in CF?
Thanks!
Hi there
Do you mean the modified date of the page itself? If so, this'll do the job:
<cfdirectory action="list" directory="#getDirectoryFromPath(getCurrentTemplatePath())#" name="qFileInfo" filter="#ReReplace(CGI.script_name,"/","")#" />
<cfoutput>#qFileInfo.dateLastModified#</cfoutput>
O.
Copy link to clipboard
Copied
Hi there
Do you mean the modified date of the page itself? If so, this'll do the job:
<cfdirectory action="list" directory="#getDirectoryFromPath(getCurrentTemplatePath())#" name="qFileInfo" filter="#ReReplace(CGI.script_name,"/","")#" />
<cfoutput>#qFileInfo.dateLastModified#</cfoutput>
O.