-
- 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.
-
- 5,888 Posts
does show the date, when the resource was edited the last time, not when the template was edited.
-
- 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).
-
- 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.]
-
- 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
[[*editedon:date=`%e %b %Y`]] is an easy way to do it.
-
- 129 Posts
Thanks, that is how we are using it, though I am more of a little y (%y) fan ;-)