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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
eurocms
Forum Members
Forum Members
Posts: 30
Joined: Fri May 22, 2009 1:55 pm

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

Post 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...
Last edited by eurocms on Mon Dec 20, 2010 4:28 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

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

Post 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.
eurocms
Forum Members
Forum Members
Posts: 30
Joined: Fri May 22, 2009 1:55 pm

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

Post by eurocms »

Thanks that did the trick!!!
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

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

Post by Wishbone »

Are you sure that's what you wanted? {modified_date} only shows you the timestamp of the current page.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

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

Post 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)
Last edited by jmcgin51 on Mon Dec 20, 2010 5:28 pm, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

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

Post by Wishbone »

Yeah.. I saw that a few minutes ago.. Wasn't going to do much until I saw eurocms' reply.
Post Reply

Return to “CMSMS Core”