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.
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 |
| Main.Wiki Sandbox | August 26, 2004, at 02:27 PM | | |
| Pm Wiki.XL Page Template | March 19, 2010, at 04:14 PM | Petko | Character encoding, 'utf-8' highly recommended for new wikis |
| Pm Wiki En.XL Page | March 19, 2010, at 04:12 PM | Petko | Character encoding, 'utf-8' highly recommended for new languages |
| Wiki Sandbox.Recent Changes? | March 19, 2010, at 11:02 PM | | |
| Cam.Recent Changes? | March 19, 2010, at 11:02 PM | | |
| Pm Wiki.Success Stories | March 19, 2010, at 03:38 PM | MatthiasGünther | new image of FSR page |
| Cookbook.Mini-Talk | March 19, 2010, at 12:46 PM | Petko | reply to Klonk |
| Cookbook.Frames? | March 19, 2010, at 11:02 PM | | |
| Cookbook.Total Counter | March 19, 2010, at 06:02 AM | simon | fix version number |
| Main.Home Page | March 06, 2010, at 01:12 AM | SchreyP | de-sandbox |
| Cookbook.Triad Skin-Talk | March 19, 2010, at 03:06 AM | HansB | reply |
| Pm Wiki.Documentation Index | March 19, 2010, at 02:01 AM | SchreyP | and remove intermap for AvailableActions |
|
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.Mini-Talk | March 19, 2010, at 12:46 PM | Petko | reply to Klonk |
| Cookbook.Total Counter | March 19, 2010, at 06:02 AM | simon | fix version number |
| Cookbook.Triad Skin-Talk | March 19, 2010, at 03:06 AM | HansB | reply |
| Cookbook.Twitter | March 19, 2010, at 01:25 AM | MatthiasGünther | typo |
| Cookbook.Cookbook | March 17, 2010, at 10:48 PM | simon | use fmt=RecipeList#recipelist for searchbox |
| Cookbook.Recipe List | March 17, 2010, at 10:48 PM | simon | use fmt=RecipeList#recipelist for searchbox |
| Cookbook.Fox Contacts | March 17, 2010, at 03:50 PM | HansB | Recipe Update |
|
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
User notes: If you use, used or reviewed this recipe, you can
add your name. The following format is recognized:
* (+) Optional positive comment. Name, date
* (-) Optional negative comment. Name, date
These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.