Page 1 of 1

[SOLVED] Website updated automatic date stamp? Is it possible?

Posted: Mon Dec 20, 2010 3:07 pm
by eurocms
I am using CMS for my Intranet site where we post policies and frequent business updates.

At the present time on my home page I have a heading that states
"NEW DOCUMENTS ADDED on 12/01/2010"

Every time I add/change pages I have to manually change the date....
Is there a way to add some kind of tag that would "detect" any website changes and put the date stamp for me?
Thanks...

Re: Website updated automatic date stamp? Is it possible?

Posted: Mon Dec 20, 2010 3:26 pm
by Rolf
Shure  :)
Help for the modified_date tag

What does this do?
Prints the date and time the page was last modified. If no format is given, it will default to a format similar to 'Jan 01, 2004'.
How do I use it?

Just insert the tag into your template/page like: {modified_date format="%A %d-%b-%y %T %Z"}

What parameters does it take?
    * (optional)format - Date/Time format using parameters from php's strftime function. See here for a parameter list and information.
Grtz. Rolf  :)

Re: Website updated automatic date stamp? Is it possible?

Posted: Mon Dec 20, 2010 4:26 pm
by Wishbone
I'm not sure if that's what he was asking for. He doesn't want a timestamp on the current page to say what the last update time was.. He wants a tag on his home page to say the last time any page was updated.

If no one can help, I'll see if I can come up with a UDT that will do just this in the next couple of days if I can get some free time after work.

[SOLVED]Re: Website updated automatic date stamp? Is it possible?

Posted: Mon Dec 20, 2010 4:27 pm
by eurocms
Thanks that did the trick!!!

Re: [SOLVED] Website updated automatic date stamp? Is it possible?

Posted: Mon Dec 20, 2010 4:30 pm
by Wishbone
Are you sure that's what you wanted? {modified_date} only shows you the timestamp of the current page.

Re: [SOLVED] Website updated automatic date stamp? Is it possible?

Posted: Mon Dec 20, 2010 5:26 pm
by jmcgin51
don't work too hard, wishbone - some of your work might already be done.  Have you seen/used the {recently_updated} tag?

or there is a UDT in the wiki, "Date of the latest modification on the site"  (http://wiki.cmsmadesimple.org/index.php ... _tags_here)

Re: [SOLVED] Website updated automatic date stamp? Is it possible?

Posted: Mon Dec 20, 2010 5:34 pm
by Wishbone
Yeah.. I saw that a few minutes ago.. Wasn't going to do much until I saw eurocms' reply.