Summary: Track the most recent changes to a list of pages
Version: n/a
Prerequisites: PmWiki 2.2
Status: Stable
Maintainer: Drafted by
Petko
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
December 12, 2011, at 02:42 AM - Cookbook.Cookbook - simon (layout)
December 06, 2011, at 10:15 PM - PmWiki.PageVariables - Caroline Guénette (Add link to PmWiki.MarkupExpressions#ftime on "ftime")
September 10, 2011, at 11:56 AM - PITS.00657 - simon (implemented syntax)
September 10, 2011, at 11:42 AM - Cookbook.AddDeleteLine2 - Nils? ()
September 10, 2011, at 11:42 AM - Cookbook.HtpasswdForm - HansB (changed Summary to be more descriptive)
September 10, 2011, at 11:08 AM - PmWiki.PageLists - Petko (see also: back to bulleted list, pagelist will not show cookbook recipes)
|
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:)
>>comment<<
[[#watchlist]]
(:template defaults order=-time:)
(:template first:)
||width=* style="font-size:smaller;"
(:template each:)
||%pre%[[{=$FullName}?action=diff | {=$LastModified}]]%%
||''[[{=$FullName}|{=$Groupspaced}.{=$Namespaced}]]''
||[[~{=$LastModifiedBy}]] ||{=$LastModifiedSummary} ||{=$:Summary} ||
(:template last:)
[[#watchlistend]]
>><<
|
| February 17, 2012, at 03:50 AM | Pm Wiki.Notify | cda | | Allows a site administrator to configure PmWiki to send email messages whenever pages are changed on the wiki site |
| December 12, 2011, at 02:42 AM | Cookbook.Cookbook | simon | layout | List of cookbook recipe categories |
| December 06, 2011, at 10:15 PM | Pm Wiki.Page Variables | Caroline Guénette | Add link to PmWiki.MarkupExpressions#ftime on "ftime" | variables that are associated with pages |
| September 17, 2011, at 07:10 PM | Pm Wiki.Download | Petko | this is no longer needed | Download versions of PmWiki |
| September 10, 2011, at 11:56 AM | PITS.00544 | Anno | | Limit the number of displayed diffs at once (was: Caching for history) |
| September 10, 2011, at 11:42 AM | Cookbook.Add To Watchlist | Petko | new version | Add or remove a page from your watchlist trail with a single click. |
| September 10, 2011, at 11:08 AM | Pm Wiki.Page List Templates | simon | add example of display PTV in pagelist | Creating page list format templates |
| September 10, 2011, at 11:08 AM | Pm Wiki.Page Lists | Petko | see also: back to bulleted list, pagelist will not show cookbook recipes | Listing pages by multiple criteria with templated output |
(:template defaults order=-time:)
(:template first:)
(:template each:)
(:template last:)
|
- Notes
- the comment 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
User notes +2: 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.