gibbs / phile-last-modified
A simple philecms plugin that returns the Unix timestamp of the page (file)
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:phile-plugin
Requires
This package is not auto-updated.
Last update: 2020-02-21 15:50:20 UTC
README
A simple PhileCMS plugin that returns the Unix timestamp of the page (file). This can be used in combination with your templating engine to format the last modificationdate of your page. Useful for blog posts and wiki entries. For example:
Last Updated on Mon 19th May 2014 at 7:49pm
This can be output by using the date function in Twig. For example:
<h1>{{ meta.title }}</h1> <p><small>Last Updated {{ modified|date("D jS M Y \\a\\t g:ia") }}</small></p> {{ content }}
1. Installation
Install via composer
composer require "gibbs/phile-last-modified:1.*"
Install via git
Clone this repository from the phile
directory into
plugins/gibbs/phileLastModified
. E.g:
git clone git@github.com:Gibbs/phileLastModified.git plugins/gibbs/phileLastModified
Manual Install
Download and extract the contents into: plugins/gibbs/phileLastModified
2. Plugin Activation
Activate the plugin in your config.php
file:
$config['plugins']['gibbs\\phileLastModified'] = array('active' => true);