Sorry, this page is only available in one language

SiteModifiedX

Suggested dropletname: SiteModifiedX

Published by: rsmith

Modification of the SiteModified Droplet, SiteModifiedX will display and link to the last [count] number of pages.

global $database, $wb;
$links="";
if(!isset($x)){$x=10;};
$links="Last $x Modified Pages:<ul>";
if (PAGE_ID>0) {
	$query=$database->query("SELECT modified_when, link,page_title FROM ".TABLE_PREFIX."pages where visibility='public' order by modified_when desc limit $x");
	while($mod_details=$query->fetchRow()){
	$links=$links." <li><a href='".PAGES_DIRECTORY.$mod_details[1].PAGE_EXTENSION."'>".$mod_details[2]." ".date("m/d/Y",$mod_details[0]). " at ".date("H:i",$mod_details[0])."</a></li>";
	}
	$links=$links."</ul>";
	return $links;
}

Optional parameters

x=(amount of links)

Example

[[sitemodifiedx?x=15]]

 

Without the x parameter the Droplet will show the 10 last modified pages.



« Previous droplet | Overview | Next droplet »