00482: Direct acces to page history from the recentchanges page

Summary: Direct acces to page history from the recentchanges page
Created: 2005-07-31 02:55
Status: Closed
Category: Feature
From: jroeterd
Priority: 1
Version: 2.0 beta 50
OS: WinXP, ISS, PHP 5.0

Description: When checking recent changes I want to know what is changed (espacially with large pages).

First I have to go to the page and then click on page history. Can we have a icon before or after each entry in the recent changes page which takes you directly to the page history for that page.

It is not a very big thing but for me it would make PmWiki more logical to use.



You can change the format of the RecentChanges and AllRecentChanges pages. The following will put an extra link (diff) to the page history after the page name. You could replace (diff) with an url of an icon image if you wish. Try this by putting it in local/config.php at the end (since sometimes cookbook scripts redefine the format for recent pages:

 $RecentChangesFmt['$SiteGroup.AllRecentChanges'] = 
    '* [[$Group.$Name]] [[$FullName?action=diff|(diff)]]  
 . . . $CurrentTime $[by] $AuthorLink:  [=$ChangeSummary=]';
 $RecentChangesFmt['$Group.RecentChanges'] =
    '* [[$Group/$Name]] [[$FullName?action=diff|(diff)]]  
 . . . $CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]';

The change will take effect only for newly changed pages, since page changes get added to the list of Recent Pages. ~HansB

Hello HansB,

Thank you for your very quick answer. It is indeed what I wanted on my site. I will close this PITS as the answer is working OK for me. ~Jroeterd?

I made an error: please enclose $ChangeSummery with [= =]. ~HansB

Thanks. This worked for me. I will close this PITS. ~Jroeterd