Summary: A recent changes page created using
Page lists
Version: 1.0
Prerequisites: 2.2.0
Status: Mature
Maintainer: Simon
Questions answered by this recipe
- How do I roll my own recent changes page?
- How can I gain more control over the recent changes I display?
Description
Using a pagelist to create a recent changes page.
After copying the code, you need to restore the lines, by removing the unnecessary line breaks. |
Create a pagelist in Site.LocalTemplates as follows
#recentlychanged
>>comment<<
[[#recentlychanged]]
(:template defaults trail=Site.AllRecentChanges:)
(:template first:)
||width=*
||!Page ||! Time||!By ||!Change ||
(:template each:)
||''[[{=$FullName} | {=$Groupspaced}.{=$Namespaced}]]'' || [[{=$FullName}?action=diff | {=$LastModified}]]||(:if !equal {=$LastModifiedBy}:)[[~{=$LastModifiedBy}]](:ifend:) ||{=$LastModifiedSummary} ||
[[#recentlychangedend]]
>>font-size:smaller<<
(:pagelist fmt=#recentlychanged count=12:)
|
(:template defaults trail=Site.AllRecentChanges:)
(:template first:)
(:template each:)
Page | Time | By | Change |
Pm Wiki.Release Notes | August 13, 2025, at 05:43 PM | Petko | 2.5.1 (+219) |
Pm Wiki.Pm Wiki-Talk | August 13, 2025, at 05:39 PM | Petko | Thanks, fixed for 2.5.1, just released (+421) |
Pm Wiki.Change Log | August 13, 2025, at 05:30 PM | Petko | (+20) |
Pm Wiki De.Link Variables | August 12, 2025, at 06:13 AM | MFWolff | $EnableLinkPageRelative , $EnableRelativePageLinks (+791) |
Test.Include Link | August 11, 2025, at 05:14 AM | Petko | This is a link to Test.MyPg1: MyPg1 (+6) |
Pm Wiki.Link Variables | August 11, 2025, at 05:12 AM | Petko | $EnableLinkPageRelative , $EnableRelativePageLinks (+658) |
Pm Wiki.Include Other Pages-Talk | August 11, 2025, at 04:57 AM | Petko | re $EnableRelativePageLinks (+353) |
Pm Wiki.Requirements | August 10, 2025, at 06:14 PM | Petko | PHP 7.0 to 8.4 (+0) |
Pm Wiki.Upgrades | August 10, 2025, at 05:49 PM | Petko | 2.5.0 (+708) |
Pm Wiki.Security Variables | August 10, 2025, at 05:16 PM | Petko | @nopass (+67) |
Main.Hhhh | August 17, 2025, at 12:47 PM | | |
Main.Wiki Sandbox | August 26, 2004, at 07:27 PM | | |
|
Add the pagelist to the page of your choice, specifying group, name, count, etc pagelist parameters
(:pagelist fmt=#recentlychanged)
Please note that it is very much faster and less heavy for PmWiki to use trail=Group.RecentChanges count=7
instead of group=Group order=-time count=7
. To list all 7 most recent changes, you could have trail=Site.AllRecentChanges count=7
. --Petko April 21, 2009, at 06:50 PM
fmt=#recentchanges
>>comment<<
[[#recentchanges]]
(:template defaults order=-time name=-GroupAttributes,-Site.AllRecentChanges,-Site.LastChanged,-RecentChanges,-RecentUploads,-SiteAdmin.Blocklist-*:)
(:template first:)
||width=*
||!Page ||! Time||!By ||!Change ||
(:template each:)
||''[[{=$FullName} | {=$Groupspaced}.{=$Namespaced}]]'' || [[{=$FullName}?action=diff | {=$LastModified}]]||(:if !equal {=$LastModifiedBy}:)[[~{=$LastModifiedBy}]](:ifend:) ||{=$LastModifiedSummary} ||
[[#recentchangesend]]
>>font-size:smaller<<
(:pagelist group={*$Group} fmt=#recentchanges count=7:)
|
(:template defaults order=-time name=-GroupAttributes,-Site.AllRecentChanges,-Site.LastChanged,-RecentChanges,-RecentUploads,-SiteAdmin.Blocklist-*:)
(:template first:)
(:template each:)
Page | Time | By | Change |
Cookbook.Filterable | July 22, 2025, at 07:22 AM | Petko | 2025-07-22: Refactor, expose Jets.makeOneFilterable. (+55) |
Cookbook.Worse | July 22, 2025, at 04:05 AM | Petko | requires latest nightly (+53) |
Cookbook.Dark Color Scheme | July 10, 2025, at 03:25 PM | Petko | restore - will try differently (-242) |
Cookbook.Section Edit | July 10, 2025, at 02:59 PM | Petko | Fix for $EnableNotSavedWarning (+78) |
Cookbook.Handy Table Of Contents-Talk | July 08, 2025, at 10:32 PM | Charlie | (+286) |
Cookbook.Attach Image Size | June 29, 2025, at 05:16 AM | Petko | Add usage, size of individual images, fix mailing list link (+414) |
Cookbook.B 3 | June 23, 2025, at 08:41 AM | Petko | 20250623: Add 'nbcomments' class name to the "(N comments)" line. (+0) |
|
Add the pagelist to the page of your choice, specifying group, name, count, etc pagelist parameters
(:pagelist fmt=#recentchanges)
This lists differently from the standard Recent Changes as follows
- it does not display deleted pages
- it does show all pages that are updated as the result of a change, eg RecentChanges, RecentUploads, LastChanged, AllRecentChanges
- if there are zero length files in the page store they are all shown as having changed now.
- it displays other pages that are updated, eg GroupAttributes, Category pages, SiteAdmin,Blocklist-* pages
Release Notes
If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".
See Also
Contributors
Comments
See discussion at PagelistRecentChanges-Talk
User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.