Pagelist Recent Changes
Contents
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
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
[[#recentchanges]] ||width=* ||!Page ||! Time||!By ||!Change || ||''[[{=$FullName} | {=$Groupspaced}.{=$Namespaced}]]'' || [[{=$FullName}?action=diff | {=$LastModified}]]||[[~{=$LastModifiedBy}]] ||{=$LastModifiedSummary} || [[#recentchangesend]] (:pagelist group={*$Group} fmt=#recentchanges count=7:) | ||||||||||||||||||||||||||||||||
|
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
See Also
Contributors
- Simon
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.