00796: create links to individual changes on history page

Summary: create links to individual changes on history page
Created: 2006-08-30 05:42
Status: Closed - added for 2.2.11
Category: Feature
Assigned:
Priority: 5443
Version: any
OS: any

Description: The following patch adds links and anchors to the individual entries on the history page, allowing to link directly to a particular change: http://jw.tks6.net/files/pmwiki-history-anchors-and-links-v2.diff

Relevant mailing list discussion: http://thread.gmane.org/gmane.comp.web.wiki.pmwiki.user/30135


You can add anchors to each entry of the history page by changing $DiffStartFmt. This creates the ability to link to a specific revision in a page's history. To implement this, add the following line to your config.php file:

   $DiffStartFmt = "<div class='diffbox'><div class='difftime'><a name='\$DiffId'
   href='{\$PageUrl}?action=diff#\$DiffId'>\$DiffTime</a>\$[by] <span class='diffauthor'
   title='\$DiffHost'>\$DiffAuthor</span> - \$DiffChangeSum</div>";

I think this change should be made permanent in the core (from the mailing list). -Diafygi (2009-07-09)