DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:lastmod

This is an old revision of the document!


Lastmod-Plugin

Compatible with DokuWiki

No compatibility info given!

plugin Displays the timestamp of the last modification of the current or another page (if you need it directly in the text and not only at the end of the page).

Last updated on
2008-11-09
Provides
Syntax

The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to lastcomp

Tagged with changelog, include, time

Installation

You can use the plugin-manager to install this plugin. The URL is http://www.dieploegers.de/files/plugin-lastmod.zip.

Syntax

To display the last modification timestamp of the current page:

~~LASTMOD~~

To display the last modification timestamp of another page:

~~LASTMOD:<page-id>~~

Replace <page-id> with the id of the page you'd like to get the last modification date from.

Example

This page was last edited at: ~~LASTMOD~~

Outputs:

This page was last edited at: 2005/10/10 11:03:00
The start page was last edited at: ~~LASTMOD:start~~

Outputs:

This page was last edited at: 2008/11/09 16:07:08

Plugin

Use the plugin manager or unzip the file into the lib/plugins-folder.

Comments

Note: it will also mark hot and recent changes with classes lastmod_hot and lastmod_recent respectively. So you can specify different styles for dates in CSS.

  • Thanks! I will include this, when I have the time. Now I've only added the pluginmanager-link.
  • Is this plugin also working for sections? Or only for the whole page? — Freddy 2005-11-10 20:36
  • As I think, that the last modification is saved document-wide, lastmod doesn't show, what section has been modified at which time, sorry. — Dennis Ploeger 2006-01-18 18:15
  • Strangely there was nothing in the zip-file here. I've put a new version online. — Dennis Ploeger 2006-05-22 11:26
  • I've updated the script above, too. — Dennis Ploeger 2006-05-22 13:34
  • Nice plugin. Can it be updated to display the lastmod for different pages (e.g. useful when you have a table of pages and have the last mod filled in within a column)? — Garyv 2006-06-17:45
  • I like it! I have to agree with Garvy and Dmitry. It would be nice to implement the lastmod for other pages…
  • Can we have a lastmod for filelinks, right now when you link in a non image file, it shows you the link but not the date..
  • I've corrected the output to suit the format of $INFO['lastmod'] of the newer DokuWiki releases and added a parameter to display the modification timestamp of another date as GaryV and Dmitry suggested. Have fun! — Dennis Ploeger 2008-09-11 16:10
  • Suggestion: I think you need to add a call to pageinfo(); in else {….} in function handle(….) otherwise my DokuWiki shows the date of the previous revision. — Jesper Adolfsson 2008-12-02 00:10

* Suggestion: To work with relative pagenames add getID in the function handle:

$id = matches[1];

becomes

$id = getID($matches[1]);

Luitzen 2010-03-26 09:22

plugin/lastmod.1269591925.txt.gz · Last modified: 2010-03-26 09:25 by 159.46.2.57

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki