Edit GS Page Dates Plugin (creDateShow)

Downloads: 395
Category: Plugin
Compatible with: GetSimple 3.3 - 3.3

Last Updated: June 24, 2016
Tags: date create publish show edit
Author: icedaddy
Author Website: http://icedaddy.net
Support: Support Forum

(5) 2 Votes

Plugin Description:

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:

  • Creation Date
  • Publish Date

You can edit/enter new dates in either or both fields. If you do not enter a publish date then it will default to now, as per the usual behaviour.

Publish date is the standard GetSimple date and can be accessed by the usual functions: get_page_date($format, $echo); or even getPageField($page, 'pubDate'); or returnPageField($page, 'pubDate');

The Creation date can be accessed by the functions: get_page_create_date($format, $echo); and return_page_create_date($format);. Also the usual GetSimple access functions can also be used: getPageField($page, 'creDate'); and returnPageField($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:

define('CREDATEFORMAT','Y-m-d H:i'); // ==> 2015-12-31 23:59

Install Instructions:

Unzip into plugins folder and activate as usual.

Add the CREDATEFORMAT define to gsconfig.php if required.