Click here to register.
      
PBWG Banner


     Etcetera > LastModified question

LastModified question

User Chirifischio
Date 8/29/2008 2:30 am
Views 547
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: Übersetzungen vor dem nächsten Treffen - Translations to be done before the next meeting will take place. by koen - Mon @ 05:17pm

Übersetzungen vor dem nächsten Treffen by bernd - Mon @ 03:09pm

Re: Auth memcookie by JohnRestrepo - Mon @ 12:57pm

Re: Auth memcookie by JT - Mon @ 11:31am

Auth memcookie by JohnRestrepo - Mon @ 10:40am

Re: Patch for wremonitor by JT - Mon @ 10:36am

Patch for wremonitor by knowmad - Mon @ 10:26am

Re: Synopsis search results by knowmad - Mon @ 10:19am

Synopsis search results by marieken - Mon @ 05:49am

Re: Question concerning approval workflows by preaction - Mon @ 02:05am

Re: Question concerning approval workflows by perlDreamer - Sun @ 08:03pm

Re: Help With Octal Math by perlDreamer - Sun @ 07:43pm