Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

WatchLists

Summary: Track the most recent changes to a list of pages
Version: n/a
Prerequisites: PmWiki 2.2
Status: Stable
Maintainer: Drafted by Petko
Categories:Cookbook, Links, Menus

Questions answered by this recipe

How to quickly display a list of user-chosen most recently modified pages?

Description

Track the most recent changes to a list of pages

This can be very easily done with page lists on a WikiTrail.

1. Create a page Profiles/YourName-watchlist with a bulleted list of the pages that you wish to track, and some format for the pagelist. Example:

 
* [[PmWiki.Download]]
* [[Cookbook.Cookbook]]
* [[PITS.00544]]
* etc.

!!Format
[@
[[#simplelist]]
[[{=$FullName}?action=diff | {=$LastModified}]] - \
'''[[{=$FullName}]]''' - [[~{=$LastModifiedBy}]] ({=$LastModifiedSummary})\\
[[#simplelistend]]
@]

2. On your profile page add the pagelist line:

 
!! Watch list
(:pagelist trail=Profiles.YourName-watchlist fmt=Profiles.YourName-watchlist#simplelist order=-time:)

Example (the list and format are on the page Cookbook.WatchLists-watchlist):

!! Watch list
(:pagelist trail=Cookbook.WatchLists-watchlist
fmt=Cookbook.WatchLists-watchlist#simplelist order=-time:)

Watch list

July 16, 2008, at 01:37 AM - Cookbook.HtpasswdForm - Sam Wilson (Q: Is there a password reminder/reset feature?)
July 14, 2008, at 10:43 AM - PmWiki.PageVariables - HansB (added 1179873663)
June 28, 2008, at 09:38 PM - Cookbook.Cookbook - simon (use 'new' pagelist driven version)
June 11, 2008, at 03:54 PM - PmWiki.PageLists - simon (How do I capture the output from "fmt=count" into a page text variable)
May 18, 2008, at 12:57 AM - Cookbook.AddDeleteLine2 - Ian MacGregor (restore)
March 13, 2008, at 10:19 PM - PITS.00657 - Andy Standfield ()

Clicking on the date opens the page history.

Single page option

On a page where you have a bullet list of wiki pages follow this markup example

!!! [[Cookbook/Watch list(s)]]
(:pagelist trail={$FullName} fmt={$FullName}#watchlist:)

(:if false:)
[[#watchlist]]
(:template defaults order=-time:)
(:template first:)
>>font-size:smaller<<
(:template each:)
-<[[{=$FullName}?action=diff | {=$LastModified}]] -
''[[{=$FullName}|{=$Groupspaced}.{=$Namespaced}]]'' -
[[~{=$LastModifiedBy}]] ({=$LastModifiedSummary}) - {=$:Summary}
(:template last:)
>><<
[[#watchlistend]]
(:ifend:)

Watch list

July 14, 2008, at 10:43 AM - Pm Wiki.Page Variables - HansB (added 1179873663) - variables that are associated with pages
June 28, 2008, at 09:38 PM - Cookbook.Cookbook - simon (use 'new' pagelist driven version) - List of cookbook recipe categories
June 11, 2008, at 03:54 PM - Pm Wiki.Page Lists - simon (How do I capture the output from "fmt=count" into a page text variable) - Listing pages by multiple criteria with templated output
June 05, 2008, at 08:27 AM - Pm Wiki.Notify - Bartolin (Added anchor #controlling_notification_frequency) - Allows a site administrator to configure PmWiki to send email messages whenever pages are changed on the wiki site
May 25, 2008, at 07:27 PM - Pm Wiki.Download - Ian MacGregor (restore) - Download current version of PmWiki
January 17, 2008, at 03:37 PM - Pm Wiki.Page List Templates - Anke (small note as to the use of {$$option}) - Creating page list format templates
January 12, 2008, at 06:38 AM - PITS.00544 - Anno () - Limit the number of displayed diffs at once (was: Caching for history)
Notes
the if false hides the page list format from being displayed, yet it is used by the pagelist
you can customise the markup between the anchors ([[#...]]) as required

Notes

Text in the {$LastModifiedSummary} has control characters removed, and formatting suppressed by default.

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".

Comments

See Also

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on May 22, 2007, at 05:41 PM