Click here to register.
      
IRC banner


     Etcetera > LastModified question

LastModified question

User Chirifischio
Date 8/29/2008 2:30 am
Views 564
Rating 0    Rate [
|
]
Previous · Next
User Message
Chirifischio

Hello!

I've read the lastModified macro gives the date related to the current page. Is there a way to apply it to the whole site? So it gives the date of the last modification of the site overall.


Thanks!

--- (Edited on 8/29/2008 2:30 am [GMT-0500] by Chirifischio) ---



Back to Top
Rate [
|
]
 
 
perlDreamer

There is a table in the WebGUI database called assetHistory that keeps track of version control history.  That might be your next best bet.

You can build a SQL Report, or use the SQL macro with this query to get the last change:

select dateStamp from assetHistory order by dateStamp limit 1

--- (Edited on 8/29/2008 10:57 am [GMT-0700] by perlDreamer) ---



Back to Top
Rate [
|
]
 
 
Cirifischio

Thanks for the help, no success yet but you showed the right path hopefully. I activated the SQL macro etc, still can't figure out the right syntax to get the date I need. I'm brand new to SQL...

--- (Edited on 9/23/2008 2:59 am [GMT-0500] by Cirifischio) ---



Back to Top
Rate [
|
]
 
 
fdillon

Try this:

^SQL("select FROM_UNIXTIME(max(revisionDate),'%m-%d-%Y') from assetData");

Here are the various format options for FROM_UNIXTIME :

Specifier Description
%a Abbreviated weekday name (Sun..Sat)
%b Abbreviated month name (Jan..Dec)
%c Month, numeric (0..12)
%D Day of the month with English suffix (0th, 1st, 2nd, 3rd, …)
%d Day of the month, numeric (00..31)
%e Day of the month, numeric (0..31)
%f Microseconds (000000..999999)
%H Hour (00..23)
%h Hour (01..12)
%I Hour (01..12)
%i Minutes, numeric (00..59)
%j Day of year (001..366)
%k Hour (0..23)
%l Hour (1..12)
%M Month name (January..December)
%m Month, numeric (00..12)
%p AM or PM
%r Time, 12-hour (hh:mm:ss followed by AM or PM)
%S Seconds (00..59)
%s Seconds (00..59)
%T Time, 24-hour (hh:mm:ss)
%U Week (00..53), where Sunday is the first day of the week
%u Week (00..53), where Monday is the first day of the week
%V Week (01..53), where Sunday is the first day of the week; used with %X
%v Week (01..53), where Monday is the first day of the week; used with %x
%W Weekday name (Sunday..Saturday)
%w Day of the week (0=Sunday..6=Saturday)
%X Year for the week where Sunday is the first day of the week, numeric, four digits; used with %V
%x Year for the week, where Monday is the first day of the week, numeric, four digits; used with %v
%Y Year, numeric, four digits
%y Year, numeric (two digits)
%% A literal “%” character
%x x, for any “x” not listed abov



--- (Edited on 9/23/2008 7:29 am [GMT-0500] by fdillon) ---



Back to Top
Rate [
|
]
 
 
Cirifischio

:DD

It seems it works fine! Thanks a lot!

--- (Edited on 9/24/2008 2:19 am [GMT-0500] by Cirifischio) ---



Back to Top
Rate [
|
]
 
 

Recent Discussions Color Key

Design:

Development:

Et Cetera:

Install/Upgrade:  

Smoketest:

Template Group:


Re: Shortcut of a thread by knowmad - Thu @ 07:33am

Re: Synopsis search results by knowmad - Thu @ 07:21am

Re: Templates workspace site by rogier - Thu @ 04:24am

Re: Templates workspace site by rogier - Thu @ 02:59am

Re: Shortcut of a thread by perlDreamer - Wed @ 11:46pm

Re: Ubuntu Load on Startup by SteveD - Wed @ 04:37pm

Shortcut of a thread by arjan - Wed @ 04:11pm

Re: preventing email spam mailto by lrobinson - Wed @ 03:51pm

preventing email spam mailto by sandraqu - Wed @ 03:39pm

Re: Data Form and Form Controls by martink - Tue @ 11:05am

Re: Synopsis search results by marieken - Tue @ 06:10am

Re: Übersetzungen vor dem nächsten Treffen by koen - Tue @ 04:24am

Re: Übersetzungen vor dem nächsten Treffen - Translations to be done before the next meeting will take place. by bernd - Tue @ 01:15am