We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38593
    • 129 Posts
    Is there a template tag that displays the resource's edited on date?

    As best I can tell, the standard [[*editedon]] tag shows the last edit to any part of that page, so if I update the template it sets the edited on date to the template edit, not to the last time the information in the resource was edited.

    Our website's use of the edited on value is to show visitors how up to date the information is, not when we lasted modified the css or html code.
      Pedalers Bicycle Tours my website forged with MODX
      vandergraaf-M static website generator for MODX
      • 4172
      • 5,888 Posts
      [[*editedon]]


      does show the date, when the resource was edited the last time, not when the template was edited.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 38593
        • 129 Posts
        So then why would all of my product pages show a date that is just a few days ago, when I haven't edited the resources in many weeks? I changed a couple of things on the template a few days ago and that has been it.

        Does the fact that some snippets are uncached effect that? (though I would think they would show today's date since they are refreshed every page load).
          Pedalers Bicycle Tours my website forged with MODX
          vandergraaf-M static website generator for MODX
          • 3749
          • 24,544 Posts
          The only thing that changes the editedon date is saving the resource itself. The odds are very high that someone or some script saved the resources on their editedon date. [ed. note: BobRay last edited this post 10 years ago.]
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 38593
            • 129 Posts
            Thanks for both replies.

            BobRay got me thinking and asking around. Turns out unbeknownst to me, a staffer went through to correct some typos in the product pages later on the same day I had edited the templates, hence the new editedon date values.

            Call me a dunderhead sad
              Pedalers Bicycle Tours my website forged with MODX
              vandergraaf-M static website generator for MODX
            • [[*editedon:date=`%e %b %Y`]] is an easy way to do it.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 38593
                • 129 Posts
                Thanks, that is how we are using it, though I am more of a little y (%y) fan ;-)
                  Pedalers Bicycle Tours my website forged with MODX
                  vandergraaf-M static website generator for MODX