SiteLastUpdated
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
Works with the following Version(s): 0.9.6
Displays the date of the latest update to the entire site.
Download
- repo-2147.txt (210 downloads)
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
Votes: 10
Tags: snippet, date/time
Submitted: Jul 28, 2008
Released: Jul 28, 2008
Downloads: 157
License: Public Domain
Package Website
SiteLastUpdated 1
Works with the following Version(s): 0.9.6
Display the date of the latest update to the entire site.
Download
- repo-2135.txt (157 downloads)
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).

Please login to comment.