[pmwiki-users] link to particular diff in history

Petko Yotov 5ko at 5ko.fr
Thu Feb 4 00:24:22 CST 2010


On Monday 01 February 2010 22:11:41, Rik Blok wrote :
> Hi everybody, long time lurker / first time poster here.  I've set up a
> notify list but I'd like the links it creates to point to the
> appropriate diffs in the history page.

Hello. This was ads

> 
> I've added the necessary anchors in the history page by adding this to
> 
> config.php:
> > $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>";

Hello. Anchors/links to single edits were added to the core today and will 
appear in the next release. Then you'll be able to remove the above code from 
your config file. The links are now enabled on pmwiki.org, and if you're in a 
hurry, you can get the scripts/pagerev.php file from Subversion :

  http://www.pmwiki.org/pub/pmwiki-devel/pmwiki-latest-svn.zip

> But how do I get the notification to point to it?  I tried
> 
> > $NotifyItemFmt = " * {\$FullName} ... \$PostTime by {\$Author}\n Summary:
> > {\$LastModifiedSummary}\n {\$PageUrl}?action=diff#{\$DiffId}\n";

This will be possible in the nearest future (now with subversion, or later 
with 2.2.11 stable). When you upgrade, you can use 
  
  {\$PageUrl}?action=diff#diff\$Now

Thanks,
Petko



More information about the pmwiki-users mailing list