Skip to content
This repository has been archived by the owner on Jun 30, 2019. It is now read-only.
/ phileLastModified Public archive

Provides a 'modified' variable sent to the template engine for displaying a pages last modified date.

License

Notifications You must be signed in to change notification settings

gibbs/phileLastModified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhileLastModified

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);

About

Provides a 'modified' variable sent to the template engine for displaying a pages last modified date.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages