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