Fullscreen
[Show/Hide Right Column]

Show the last modification date for a page

Plugin Lastmod

This Wiki Plugin displays the last modification date of the current or named page.



Usage and Parameters

To use this plugin in a wiki page, use the syntax:
Syntax for the LASTMOD plugin
{LASTMOD(page=>pagename)/}


And here is information about the parameter:

Parameter Accepted values Default Effect Required? Since
page name of a tiki page page where the plugin is placed Displays the last modification date for the page named or for the page where the plugin is placed if no page name is apecified n


warningWarning
Prior to version 3.0, there is a small miscoding that causes a "%0" to appear at the end of the modification date instead of the time zone. The patch to fix this is to change the "%O" to "%Z" in line 42 of the file at lib\wiki-plugins\wikiplugin_lastmod.php.


warningWarning
''Plugin Lastmod does not default to current page when page name is not specified. In each version of Tiki, the plugin with the pagename specified worked correctly (other than the '%0' in Tiki 2 mentioned in the documentation).

When Lastmod is coded without specifying the page name, the current date and time are returned in Tiki versions 2 through 6, and nothing at all is returned in Tiki versions 7 through 9.

There appears to be a problem with how the Lastmod plugin get the page name when it is not specified.

The workaround is to specify the page name.''

Examples

No Page Name

This code,

Example with no page name
{LASTMOD()/}


arrow-right.png
Would produce on this site:


Page Name Specified

This code,

Example with page name
{LASTMOD(page=>HomePage)/}


arrow-right.png
Would produce on this site:

Fri, 25 May 2012 02:40:51 UTC




Contributors to this page: Zac298 points  and lindon137 points  .
Page last modified on Tuesday 01 May, 2012 18:23:17 UTC by Zac298 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki