creDateShow - Show/Edit Page Dates - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: creDateShow - Show/Edit Page Dates (/showthread.php?tid=8532) |
creDateShow - Show/Edit Page Dates - icedaddy - 2016-06-24 creDateShow support thread http://get-simple.info/extend/plugin/edit-gs-page-dates-plugin-credateshow/1045/ GetSimple pages have a publish date (pubDate) that is updated every time the page is saved. If you use the i18n_specialpages plugin you also have a creation date (creDate) for every page. I wanted to be able to easily view and manage these two dates on my pages so I wrote this small plugin. Actually, it is a fork of the GetSimple PubDateFix plugin written by Carlos which did not quite do what I wanted. The plugin gives you two extra fields on the edit page options:
Publish date is the standard GetSimple date and can be accessed by the usual functions: Code: get_page_date($format, $echo); The Creation date can be accessed by the functions: Code: get_page_create_date($format, $echo); Code: getPageField($page, 'creDate'); The date format defaults to `'Y-m-d H:i'` but this can be changed by adding a CREDATEFORMAT entry to gsconfig.php, for example: Code: define('CREDATEFORMAT','Y-m-d H:i'); // ==> 2015-12-31 23:59 |