The 404 module has received a security update for any version below v1.6!
If you are using this module on your website you are advised to upgrade the module as soon as possible!

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 »