[pmwiki-users] How to make Site.AllRecentChanges display *all* recent changes?

H. Fox haganfox at users.sourceforge.net
Fri Nov 17 14:50:13 CST 2006


On 11/17/06, Lucian Wischik <lu.gmane at wischik.com> wrote:
>
> I'd like Site.AllRecentChanges to show *all* recent changes. It should
> make a list out of every historical change to every page (going back
> to a certain date limit), and sort this list.

Here's how...

On 3/17/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>[...] Logging all edits is no problem --  it's just:
>
>     $RecentChangesFmt['Site.AllEdits'] =
>       '* [[{$FullName}]] . . . $CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]';
>
> The key to getting this to work is to make sure that there *aren't*
> two consecutive spaces in the formatting line (unlike the standard
> RC entries which use the two spaces to figure out what's the same
> and what is different).
>
> I've never tried this, but one could conceivably reformat the line
> to get successive edits of a page by a single author into a single
> record:
>
>     $RecentChangesFmt['Site.AllRecentChangesPerAuthor'] =
>       '* [[{$FullName}]] $[by] $AuthorLink  . . . $CurrentTime: [=$ChangeSummary=]';
>
> Note the two spaces after "$AuthorLink".  This will combine changes
> of the same page by the same author into a single entry, but edits
> from different authors will generate new entries.  It technically
> doesn't show every edit --  it just shows the last edit for each
> page by each author.




More information about the pmwiki-users mailing list