Sorry, this page is only available in one language

ModifiedWhen

Suggested dropletname: ModifiedWhen

Published by: Dev4me

Use this Droplet to show when the current page was last modified.

global $database, $wb;
if (PAGE_ID>0) {
    $query=$database->query("SELECT modified_when FROM ".TABLE_PREFIX."pages where page_id=".PAGE_ID);
    $mod_details=$query->fetchRow();
    return "This page was last modified on ".date("d/m/Y",$mod_details[0]). " at ".date("H:i",$mod_details[0]).".";
}

Example

[[modifiedwhen]]

Tip: To show this on every page, just add the droplet in your template.



« Previous droplet | Overview | Next droplet »