LastChangeSummary

Question

The summary (the summary field on the edit page) of the last changes is available as a page variable?

Answer

This capability is now built-in to PmWiki as of 2.1.beta23, via the {$LastModifiedSummary} page variable.
The recipe Attach:lastchangesummary.php adds the page variable {$LastChangeSummary}.

Notes

Installation:

Download the script from above and place it in your cookbook directory. Then add include_once('cookbook/lastchangesummary.php'); in your local configuration (local/config.php).

Configuration:

No configuration is necessary. Just install it and the {$LastChangeSummary} page variable will be available.

Use:

Just use it as a normal page variable.

Examples:

  • Put {$LastChangeSummary} in a page to display the summary of the last change on that page.
  • Put {=$LastChangeSummary} in a page list format template to display the summary of the current page.
  • etc...


  • This recipe was last tested on PmWiki version: 2.1.beta22
  • This recipe requires at least PmWiki version: 2.1.beta?

Releases

  • 0.1 - 02.02.2006
    • First implementation.
  • 0.1b - 03.02.2006
    • Changed page attribute from 'lastcsum' to 'csum'.

Comments

How do you use the {$LastModifiedSummary} variable that is built into PmWiki? When I place it on my site, nothing is displayed. ~Steve


See Also


Contributors


Category: Cookbook, Modules, Page Variables Superceded