Plugin Lastmod
This Wiki Plugin displays the last modification date of the current or named page.Table of contents
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 |
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.
''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.''
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()/} |
|
Would produce on this site: |
Page Name Specified
| ||
|
This code, Example with page name {LASTMOD(page=>HomePage)/} |
|
Would produce on this site: Fri, 25 May 2012 02:40:51 UTC |
