1 Reply Latest reply: Jan 14, 2010 12:56 AM by Owain North RSS

    Auto Date on Save

    OgreOne Community Member

      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!

        • 1. Re: Auto Date on Save
          Owain North Community Member

          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.