Home  Extras  MODx Add-Ons  SiteLastUpdated

SiteLastUpdated



Forums Support Thread Votes: 13
Tags: snippet, date/time
Submitted: Aug 10, 2008
Released: Aug 10, 2008
Downloads: 210
License: Public Domain
Package Website


SiteLastUpdated 1.0.1 | Author: webe

Works with the following Version(s): 0.9.6

Displays the date of the latest update to the entire site.


Download


Description

Determines the date of the most recent edit to all of the published documents on the site.

Instructions

Create a new snippet, name it "SiteLastUpdated"
and put in the code of the file SiteLastUpdated_1.0.1.txt.

Instructions are included in the textfile.

Put the snippet !SiteLastUpdated! wherever you want the date output to appear.UpdatesAdded parameter &dateFormat for formatting date.




Sub-Packages



Previous Releases


1

Forums Support Thread Votes: 10
Tags: snippet, date/time
Submitted: Jul 28, 2008
Released: Jul 28, 2008
Downloads: 157
License: Public Domain
Package Website


SiteLastUpdated 1 | Author: sottwell

Works with the following Version(s): 0.9.6

Display the date of the latest update to the entire site.


Download


Description

Determines the date of the most recent edit to all of the published documents on the site.

Instructions

Create a new snippet, name it something like "SiteLastModified"
and put in this line:

return date('j F Y', $modx->db->getValue($modx->db->select('editedon', $modx->getFullTableName('site_content'), 'published=1', 'editedon DESC', 1)));

Put the snippet !SiteLastModified! wherever you want the date output to appear.

Edit the 'j F Y' part to modify the output to whatever format you want (see the PHP date function for more details).




Comments

Please login to comment.

Close ]


 
 
 

Contact Us | Team Blog | FAQ | Site Credits

© 2005-2009 the MODx CMS project. All rights reserved. Privacy Policy | Terms of Service